fix ReadLocalOp assert#331
Conversation
WalkthroughThis change extends error handling in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tx_service/src/tx_operation.cpp (1)
292-329: Assert now correctly matches the error modes this branch can seeExtending the assert to allow
DATA_STORE_ERRandLEADER_NODE_UNREACHABLEis consistent with how other read paths treat these errors (retry/abort with the same logic) and should eliminate the spuriousReadLocalOperationassertion without changing behavior.You might optionally broaden the comment starting at Line 309, since the branch now also covers data-store and leader‑reachability failures, not just DDL‑blocked range locks.
Here are some reminders before you submit the pull request
fixes eloqdb/tx_service#issue_id./mtr --suite=mono_main,mono_multi,mono_basicSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.