Skip to content

Fix panic when dropping CT with active subscribe#35566

Merged
ggevay merged 1 commit intoMaterializeInc:mainfrom
ggevay:implications-drop-fixes
Mar 20, 2026
Merged

Fix panic when dropping CT with active subscribe#35566
ggevay merged 1 commit intoMaterializeInc:mainfrom
ggevay:implications-drop-fixes

Conversation

@ggevay
Copy link
Contributor

@ggevay ggevay commented Mar 20, 2026

When dropping a continual task, the CT's name was not recorded in dropped_item_names. This caused a panic in
apply_catalog_implications_inner when an active subscribe or pending peek depended on the dropped CT, because the code tried to look up the name to include in the error message.

Fix by inserting the CT's full_name into dropped_item_names, matching the pattern used by all other drop handlers (tables, sources, MVs, sinks, indexes).

Spotted by Cursor Bugbot: #29673 (comment)

When dropping a continual task, the CT's name was not recorded in
dropped_item_names. This caused a panic in
apply_catalog_implications_inner when an active subscribe or
pending peek depended on the dropped CT, because the code tried to
look up the name to include in the error message.

Fix by inserting the CT's full_name into dropped_item_names,
matching the pattern used by all other drop handlers (tables,
sources, MVs, sinks, indexes).

Co-authored-by: Junie <junie@jetbrains.com>
@ggevay ggevay requested a review from a team as a code owner March 20, 2026 11:59
@ggevay ggevay requested a review from aljoscha March 20, 2026 11:59
@github-actions
Copy link

Thanks for opening this PR! Here are a few tips to help make the review process smooth for everyone.

PR title guidelines

  • Use imperative mood: "Fix X" not "Fixed X" or "Fixes X"
  • Be specific: "Fix panic in catalog sync when controller restarts" not "Fix bug" or "Update catalog code"
  • Prefix with area if helpful: compute: , storage: , adapter: , sql:

Pre-merge checklist

  • The PR title is descriptive and will make sense in the git log.
  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).

Copy link
Contributor

@teskje teskje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ggevay ggevay merged commit 95f995e into MaterializeInc:main Mar 20, 2026
128 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants