aho135 commented on code in PR #20387:
URL: https://github.com/apache/druid/pull/20387#discussion_r4084461937
##########
indexing-service/src/test/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisorStateTest.java:
##########
@@ -2961,6 +2961,129 @@ public void
testComputeUnassignedServerPriorities_whenMultipleReplicasPerPriorit
verifyAll();
}
+ /**
+ * In bounded mode, a task group whose committed offsets have reached the
configured end must not have replacement
+ * replicas created for it. Without the guard in {@code createNewTasks()}'s
replica top-up loop, {@code replicas >
+ * tasks} would submit a replacement replica whose start offset is already
at the bounded end, so it completes
+ * instantly and re-triggers the top-up, churning tasks endlessly.
+ *
Review Comment:
Done in e220eb7f69 — trimmed the javadoc down to a one-line description of
what the test verifies, leaving the fix rationale in the main-code comment.
--
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]