Shekharrajak commented on code in PR #19311:
URL: https://github.com/apache/druid/pull/19311#discussion_r3280204201
##########
indexing-service/src/test/java/org/apache/druid/indexing/seekablestream/common/AcknowledgeTypeTest.java:
##########
@@ -42,4 +49,69 @@ public void testValueOfRoundTripsForEachConstant()
Assert.assertSame(type, AcknowledgeType.valueOf(type.name()));
}
}
+
+ @Test
+ public void testAcknowledgingRecordSupplierDefaultMethods()
+ {
+ final AcknowledgingRecordSupplier<String, Long, ByteEntity> stub =
+ new AcknowledgingRecordSupplier<String, Long, ByteEntity>()
+ {
+ @Override
+ public void subscribe(Set<String> topics)
+ {
+ }
+
+ @Override
+ public void unsubscribe()
+ {
+ }
+
+ @Override
+ public Set<String> subscription()
+ {
+ return Set.of();
+ }
+
+ @Override
+ public List<OrderedPartitionableRecord<String, Long, ByteEntity>>
poll(long timeoutMs)
+ {
+ return List.of();
+ }
+
+ @Override
+ public void acknowledge(String partitionId, Long offset)
+ {
+ }
+
+ @Override
+ public void acknowledge(String partitionId, Long offset,
AcknowledgeType type)
+ {
+ }
+
+ @Override
+ public void acknowledge(Map<String, Collection<Long>> offsets,
AcknowledgeType type)
+ {
+ }
+
+ @Override
+ public Map<String, Optional<Exception>> commitSync()
+ {
+ return Map.of();
+ }
+
+ @Override
+ public Set<String> getPartitionIds(String stream)
+ {
+ return Set.of();
+ }
+
+ @Override
+ public void close()
+ {
+ }
+ };
+
+ stub.wakeup();
+ Assert.assertFalse(stub.acquisitionLockTimeoutMs().isPresent());
Review Comment:
Just to have test coverage CI check pass.
--
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]