Commit 6d81ad8
Prefix StmtResponse db_id-mismatch ProtocolError so SA disconnect classifier triggers
Cycle 21 added a defensive db_id-echo check in ``protocol.prepare()``
that raises ProtocolError on registry drift. The error text didn't
match any of SA's ``_dqlite_disconnect_messages`` substrings, so SA's
``is_disconnect`` classifier missed it and the SA pool kept the
broken slot. Prefix the message with the canonical "wire decode
failed" phrase the SA classifier already recognises so a registry-
drift event invalidates the slot, matching the cycle-21 commit's
intent.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 07ce597 commit 6d81ad8
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
348 | 356 | | |
349 | | - | |
350 | | - | |
| 357 | + | |
| 358 | + | |
351 | 359 | | |
352 | 360 | | |
353 | 361 | | |
| |||
0 commit comments