Skip to content

fix(inkless): Remove consolidating fetchers unconditionally#629

Merged
giuseppelillo merged 1 commit into
mainfrom
svv/ts-unification-racy-remove
Jun 9, 2026
Merged

fix(inkless): Remove consolidating fetchers unconditionally#629
giuseppelillo merged 1 commit into
mainfrom
svv/ts-unification-racy-remove

Conversation

@viktorsomogyi

@viktorsomogyi viktorsomogyi commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Metadata is updated sooner than the applyDelta is being called, so checking whether the partition is consolidating there is incorrect. Since removeFetcherForPartitions ignore partitions it can't find, it's simpler and safer not to filter there.

@viktorsomogyi
viktorsomogyi force-pushed the svv/ts-unification-racy-remove branch from a44df3f to 07397da Compare June 8, 2026 14:31
@viktorsomogyi
viktorsomogyi marked this pull request as ready for review June 8, 2026 14:33
@viktorsomogyi
viktorsomogyi force-pushed the svv/ts-unification-racy-remove branch 2 times, most recently from 78b05a2 to 8751c09 Compare June 8, 2026 14:37
Filtering by the metadata view in stopPartitions is racy because when
a diskless topic is deleted it may already be gone from the metadata
view by the time we get there, so isConsolidatingDisklessTopic would
return false and leave the partitions orphaned in the consolidation
fetcher.
@viktorsomogyi
viktorsomogyi force-pushed the svv/ts-unification-racy-remove branch from 8751c09 to f578c27 Compare June 8, 2026 14:38
@giuseppelillo
giuseppelillo merged commit 55485e5 into main Jun 9, 2026
5 checks passed
@giuseppelillo
giuseppelillo deleted the svv/ts-unification-racy-remove branch June 9, 2026 08:34
jeqo pushed a commit that referenced this pull request Jun 10, 2026
Filtering by the metadata view in stopPartitions is racy because when
a diskless topic is deleted it may already be gone from the metadata
view by the time we get there, so isConsolidatingDisklessTopic would
return false and leave the partitions orphaned in the consolidation
fetcher.
jeqo pushed a commit that referenced this pull request Jun 10, 2026
Filtering by the metadata view in stopPartitions is racy because when
a diskless topic is deleted it may already be gone from the metadata
view by the time we get there, so isConsolidatingDisklessTopic would
return false and leave the partitions orphaned in the consolidation
fetcher.
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.

3 participants