abhishekrb19 commented on code in PR #19040:
URL: https://github.com/apache/druid/pull/19040#discussion_r2875276730
##########
extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/supervisor/KafkaSupervisorTest.java:
##########
@@ -5244,6 +5272,112 @@ public void
test_autoScaler_doesNotRepeatScaleDownActions_ifTasksAreStillPublish
Assert.assertFalse(supervisor.getPartitionOffsets().isEmpty());
}
+ @Test
+ public void
testComputeUnassignedServerPriorities_whenMultipleReplicasPerPriorityIsSet()
+ {
+ final Map<String, Object> consumerProperties =
KafkaConsumerConfigs.getConsumerProperties();
+ consumerProperties.put("bootstrap.servers", kafkaHost);
+
+ final KafkaSupervisorIOConfig kafkaSupervisorIOConfig = new
KafkaSupervisorIOConfig(
+ topic,
+ null,
+ INPUT_FORMAT,
+ null,
Review Comment:
Yeah, it's verified in this test
`SeekableStreamSupervisorIOConfigTest#testMismatchBetweenReplicasAndServerPriorityReplicasThrowsException()`
(In terms of structure, I added most tests to the seekable stream package
for code coverage, since it serves as the base implementation and added a
subset of those tests to the specific supervisor types)
--
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]