You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "abhishekrb19 (via GitHub)" <gi...@apache.org> on 2026/09/23 15:45:14 UTC

Re: [PR] fix: stop replica top-up churn for completed bounded task groups (druid)

abhishekrb19 commented on code in PR #20387:
URL: https://github.com/apache/druid/pull/20387#discussion_r4084350369


##########
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:
   The javadoc on this test explaining the fix can probably be simplified/removed since its already covered in the relevant main 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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org