hardikbajaj commented on code in PR #16834:
URL: https://github.com/apache/druid/pull/16834#discussion_r1703753487
##########
indexing-service/src/test/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisorStateTest.java:
##########
@@ -281,6 +287,110 @@ public void
testRunningStreamGetSequenceNumberReturnsNull()
verifyAll();
}
+ @Test
+ public void testAddDiscoveredTaskToPendingCompletionTaskGroups() throws
Exception
+ {
+ EasyMock.expect(spec.isSuspended()).andReturn(false).anyTimes();
+
EasyMock.expect(recordSupplier.getPartitionIds(STREAM)).andReturn(ImmutableSet.of(SHARD_ID)).anyTimes();
+
EasyMock.expect(taskStorage.getActiveTasksByDatasource(DATASOURCE)).andReturn(ImmutableList.of()).anyTimes();
+
EasyMock.expect(taskQueue.add(EasyMock.anyObject())).andReturn(true).anyTimes();
+
+ replayAll();
+ ExecutorService threadExecutor = Execs.multiThreaded(3,
"my-thread-pool-%d");
+
+ SeekableStreamSupervisor supervisor = new TestSeekableStreamSupervisor();
+ Map<String, String> startingPartiions = new HashMap<>();
+ startingPartiions.put("partition", "offset");
Review Comment:
Thanks, fixed it. i'll commit them with other reviews I get.
--
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]