coordinator,api: ensure changefeed deletion removes persisted metadata - #6218
coordinator,api: ensure changefeed deletion removes persisted metadata#6218lidezhu wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change validates persisted metadata during changefeed deletion, waits for durable removal, filters checkpoint updates by running state, and prevents canceled stop operators from overwriting removal progress. ChangesChangefeed lifecycle consistency
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant API as DeleteChangefeed
participant Coordinator
participant Metastore
participant Backend
API->>Coordinator: GetChangefeed
Coordinator-->>API: in-memory state
API->>Coordinator: GetPersistedChangefeedInfo
Coordinator->>Metastore: read durable metadata
Metastore-->>Coordinator: metadata state
API->>Coordinator: RemoveChangefeed
API->>Coordinator: poll persisted metadata
Coordinator->>Metastore: confirm deletion
API-->>Backend: return deletion result
Suggested reviewers: Merge Risk: ⚪ Minimal · up to Changefeed deletion now waits for durable metadata removal, avoids persisting checkpoints for stopped or removed feeds, and preserves removal progress when stop operators are replaced. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description retains the required headings but is largely incomplete. The issue reference remains the placeholder Resolution Replace
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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. A rabbit checks the changefeed trail Comment |
|
[FORMAT CHECKER NOTIFICATION] Notice: To remove the 📖 For more info, you can check the "Contribute Code" section in the development guide. |
What problem does this PR solve?
Issue Number: close #xxx
What is changed and how it works?
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Summary by CodeRabbit