Commit edcc2c7
Pin cycle 22's wire-decode-failed prefix on StmtResponse db_id-mismatch ProtocolError
Cycle 22 prefixed the ``StmtResponse`` ``db_id`` mismatch
``ProtocolError`` with the canonical ``"wire decode
failed:"`` phrase so SA's ``is_disconnect`` substring
matcher routes the registry-drift event through the
pool-invalidate path. Without the prefix the broken slot
was silently retained.
Add a test pinning the prefix on the
``DqliteProtocol.prepare`` round-trip — feed a
``StmtResponse`` with a ``db_id`` that differs from the
prepare-call's ``db_id`` and assert the ``ProtocolError``
message starts with the load-bearing phrase. A future
refactor that drops the prefix or rephrases the message
breaks the test deliberately.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 35f7a09 commit edcc2c7
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
629 | 661 | | |
630 | 662 | | |
631 | 663 | | |
| |||
0 commit comments