hwball commented on code in PR #12819:
URL: https://github.com/apache/druid/pull/12819#discussion_r938246671


##########
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:
   ~Looks like it fails on CI with a lower sleep time. It was tested locally a 
few times and passed with the lower value but I will revert the change so the 
CI can pass.~ Never mind it looks like an unrelated test caused the failure



-- 
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]

Reply via email to