gitedmond commented on code in PR #20479:
URL: https://github.com/apache/druid/pull/20479#discussion_r4187452621
##########
extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/simulate/EmbeddedKafkaSupervisorTest.java:
##########
@@ -260,17 +292,41 @@ private KafkaSupervisorSpecBuilder newKafkaSupervisor()
);
}
+ private String submitSupervisor(final KafkaSupervisorSpec spec)
+ {
+ supervisorSpec = spec;
+ return cluster.callApi().postSupervisor(spec);
+ }
+
+ private List<TaskStatusPlus> getActiveTasks()
+ {
+ return ImmutableList.copyOf(
+ (CloseableIterator<TaskStatusPlus>)
+ cluster.callApi().onLeaderOverlord(o -> o.taskStatuses(null,
dataSource, 0))
+ );
+ }
+
private List<ProducerRecord<byte[], byte[]>> generateRecordsForTopic(
String topic,
int numRecords,
DateTime startTime
)
+ {
+ return generateRecordsForTopic(topic, numRecords, startTime,
Period.days(1));
Review Comment:
Added a comment explaining that daily steps intentionally create separate
segment intervals for the handoff and lock-release assertions. Commit a06216c.
--
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]