Removes pauseless FSM scheme#17852
Merged
Jackie-Jiang merged 2 commits intoapache:masterfrom Mar 19, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #17852 +/- ##
============================================
+ Coverage 63.23% 63.28% +0.04%
Complexity 1466 1466
============================================
Files 3190 3190
Lines 192009 192003 -6
Branches 29412 29411 -1
============================================
+ Hits 121424 121502 +78
+ Misses 61063 60987 -76
+ Partials 9522 9514 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
|
@noob-se7en can we update the corresponding docs, if any, an mention about the need for config for older versions. |
Contributor
|
I don't see any backward compatibility issues too as the existing code defaulted to using the flag to figure out the fsmClass. |
Jackie-Jiang
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Server and controller can disagree on the segment commit protocol. The server decides whether to use pauseless or normal commit based on the pauselessConsumptionEnabled flag in StreamIngestionConfig.
But the controller's createFsm() first checks for a segment.completion.fsm.scheme override in the stream config — if someone sets this to "pauseless" without enabling pauselessConsumptionEnabled, the controller creates a PauselessSegmentCompletionFSM while the server does a normal commit.
Solution
Remove the segment.completion.fsm.scheme stream config override from SegmentCompletionManager.createFsm(). The controller now always derives the FSM scheme from PauselessConsumptionUtils.isPauselessEnabled() — the same source of truth the server uses. This eliminates any possibility of mismatch.
Backward Compatibility
pauselesstruepauselessfalsedefaulttruedefaultfalsetruefalse