9aman commented on code in PR #20285:
URL: https://github.com/apache/pinot/pull/20285#discussion_r4626739928
##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/realtime/PauselessSegmentCompletionFSM.java:
##########
@@ -93,6 +99,74 @@ public SegmentCompletionProtocol.Response
extendBuildTime(final String instanceI
}
}
+ /// Reached only in COMMITTER_UPLOADING (see [#extendBuildTime]). Accepts an
extension from the committer even after
+ /// the commit deadline or past
[SegmentCompletionManager#getMaxCommitTimeForAllSegmentsSeconds()]. Fails an
+ /// extension from any other server or for any other offset, without
aborting the FSM.
+ @Override
+ protected SegmentCompletionProtocol.Response
committerNotifiedExtendBuildTime(String instanceId,
+ StreamPartitionMsgOffset offset, int extTimeSec, long now) {
+ if (!instanceId.equals(_winner) || offset.compareTo(_winningOffset) != 0) {
Review Comment:
Added in cf810dcdfc: `testPauselessLateBuildTimeExtension` now sends an
extension from `OTHER_SERVER_INSTANCE` and one from the committer at another
offset, before the commit deadline. Both get FAILED, and the late extensions
and the commit end of the committer still succeed.
In practice, only a former committer sends such an extension: a server
extends its lease only while it builds as the committer. It reaches an FSM with
another winner only if the FSM went away during that build and another replica
resumed the commit at the same end offset.
--
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]