fix(kv-router): optimize clear recovery replay#9296
Conversation
Signed-off-by: PeaBrane <yanrpei@gmail.com>
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughKV indexer buffer queries now return recovery-equivalent event suffixes that account for Cleared events as worker-wide recovery barriers. The local indexer shifts response start to the most recent Cleared event within the queried range. Worker recovery logic preserves live tail state when the clear barrier event_id is older than recent live events. ChangesKV Indexer Cleared Event Recovery Semantics
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Fix router recovery after cleared batches and let worker buffer recovery responses start at the last clear barrier, avoiding replay of dead pre-clear events.
Summary by CodeRabbit
Bug Fixes
Tests
Documentation