abhishekagarwal87 commented on code in PR #12819:
URL: https://github.com/apache/druid/pull/12819#discussion_r934518890
##########
extensions-core/kafka-extraction-namespace/src/test/java/org/apache/druid/query/lookup/TestKafkaExtractionCluster.java:
##########
@@ -265,6 +265,78 @@ public void testSimpleLookup() throws Exception
}
}
+ @Test(timeout = 60_000L)
+ public void testLookupWithTombstone() throws Exception
+ {
+ try (final Producer<byte[], byte[]> producer = new
KafkaProducer(makeProducerProperties())) {
+ checkServer();
+
+ assertUpdated(null, "foo");
+ assertReverseUpdated(ImmutableList.of(), "foo");
+
+ long events = factory.getCompletedEventCount();
+
+ log.info("------------------------- Sending foo bar
-------------------------------");
+ producer.send(new ProducerRecord<>(TOPIC_NAME,
StringUtils.toUtf8("foo"), StringUtils.toUtf8("bar")));
+
+ long start = System.currentTimeMillis();
+ while (events == factory.getCompletedEventCount()) {
+ Thread.sleep(100);
Review Comment:
why not use `10` here as well?
--
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]