Commit df6fd50
[O11YINFRA-109] catch AssertionError from bmemcached on malformed binary protocol responses (DataDog#22650)
* fix(mcache): catch AssertionError from bmemcached on malformed binary protocol responses
The bmemcached library throws AssertionError when the binary protocol
magic byte doesn't match expectations (e.g., corrupted or partial
response under high load). This error was not caught by the check's
exception handler, causing the entire check to crash with an unhandled
AssertionError instead of reporting a proper CRITICAL service check.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* handle AssertionError separately: log warning instead of raising ConfigurationError
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent eb5baa2 commit df6fd50
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
308 | 318 | | |
309 | 319 | | |
310 | 320 | | |
| |||
0 commit comments