envoyproxy/envoy

Clean up PANIC macros

Open

#19.229 aperta il 9 dic 2021

Vedi su GitHub
 (12 commenti) (0 reazioni) (0 assegnatari)C++ (5373 fork)batch import
beginnerenhancementhelp wantedtech debt

Metriche repository

Star
 (27.997 star)
Metriche merge PR
 (Merge medio 8g) (378 PR mergiate in 30 g)

Descrizione

https://github.com/envoyproxy/envoy/pull/19204 replaced NOT_REACHED_GCOVR_EXCL_LINE macros with more clear PANIC_DUE_TO_CORRUPT_ENUM macros.

While more clear, the panics are still suboptimal becasue doing break; instead of return; results in production crashes. These should be cleaned up and replaced with sensible defaults on a case by case basis.

Guida contributor