AmatyaAvadhanula commented on a change in pull request #12235:
URL: https://github.com/apache/druid/pull/12235#discussion_r807783920
##########
File path:
extensions-core/kinesis-indexing-service/src/test/java/org/apache/druid/indexing/kinesis/supervisor/KinesisSupervisorTest.java
##########
@@ -4885,6 +4907,135 @@ private void testShardMergePhaseThree(List<Task>
phaseTwoTasks) throws Exception
Assert.assertEquals(expectedPartitionOffsets,
supervisor.getPartitionOffsets());
}
+ @Test
+ public void testUpdateClosedShardCache()
+ {
+ supervisor = getTestableSupervisor(1, 2, true, "PT1H", null, null);
+ supervisor.setupRecordSupplier();
+ supervisor.tryInit();
+ String stream = supervisor.getKinesisSupervisorSpec().getSource();
+ Shard openShard = EasyMock.mock(Shard.class);
+ Shard emptyClosedShard = EasyMock.mock(Shard.class);
+ Shard nonEmptyClosedShard = EasyMock.mock(Shard.class);
+ Set<Shard> activeShards;
+ Set<String> emptyClosedShardIds;
+ Set<String> nonEmptyClosedShardIds;
+
+ // ITERATION 0:
+ // active shards: an open shard, closed-empty shard and closed-nonEmpty
shard
+ activeShards = getActiveShards(openShard, true,
+ emptyClosedShard, true,
+ nonEmptyClosedShard, true);
+
+ EasyMock.reset(supervisorRecordSupplier);
Review comment:
done
--
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]