fix(meta): ignore stale refresh finish events after source drop#24983
fix(meta): ignore stale refresh finish events after source drop#24983tabVersion wants to merge 1 commit intotabVersion/fix-24829from
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a race condition where refresh completion events could arrive after a source object has been dropped, leading to errors that block command completion. By introducing a new helper function and specific error handling, the system now gracefully skips processing these stale events, improving robustness and preventing unnecessary recovery noise in such scenarios. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses a race condition where a refresh operation finishes after its associated source has been dropped. The changes correctly handle this by treating a CatalogIdNotFound("object", ...) error as a skippable event, preventing it from causing a barrier completion failure. A new helper function encapsulates this logic, making the code cleaner and more robust. The changes are well-tested and effectively resolve the issue of unnecessary recovery noise.
Summary
ListFinish/LoadFinish) when the associated source is already droppedCatalogIdNotFound(object, ..)fromget_object_database_id(associated_source_id)as idempotent skip instead of bubbling to barrier completion failureWhy
In
REFRESH TABLE+ immediateDROP TABLEraces, refresh finish events can arrive after catalog cleanup. Previously this propagated as:Failed to get database id for table -> object id not found, which could block command completion and trigger recovery noise.Tests
cargo check -p risingwave_meta --libcargo test -p risingwave_meta --lib skip_refresh_finish_when_associated_source_missingcargo test -p risingwave_meta --lib do_not_skip_refresh_finish_for_other_not_found_types