9aman opened a new pull request, #20285: URL: https://github.com/apache/pinot/pull/20285
## Problem For a pauseless table, commit start sets the segment to COMMITTING with its end offset, creates the next consuming segment and updates the IdealState. Then the committer builds and uploads the segment. The FSM aborts if a request comes after its commit deadline, for example a late build time extension. After commit start, this abort does not help the commit. The abort makes the commit end of the committer fail. Then the segment has no deep store copy until the validation manager repairs it. ## Change - After commit start, the commit deadline does not abort the pauseless FSM. Only `max.segment.completion.time.millis` limits the commit. - Before commit start, the deadline aborts the FSM as before. Then another replica can commit the segment. - A `segmentConsumed` request from the committer still aborts the FSM. This lets a committer that did not get the commit start response continue the commit. - An extension from a different server or offset gets `FAILED`. It does not abort the FSM. - Before commit end moves the segment file to the deep store, the FSM checks the segment status, end offset and time limit in ZK. Before this change, these checks ran after the move. A late commit end could replace the copy from the validation manager repair. - Blocking tables do not change. Behavior changes for pauseless tables after commit start: - The 1800 s limit on build time extensions is not used. - `realtime.segment.commit.timeoutSeconds` limits only the time before commit start. - `llcStateMachineAborts` does not count the late requests. ## Testing New `SegmentCompletionDeadlineIntegrationTest` sends the late requests from a fake server to a real controller. On master, 4 of its 7 tests fail. There, a late extension or a late report aborts the commit, and a late commit end moves its file to the deep store. `SegmentCompletionTest` and the pauseless integration tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
