You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/08/01 13:19:24 UTC
[GitHub] [druid] abhishekagarwal87 commented on a diff in pull request #12819: Remove kafka lookup records when a record is tombstoned
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: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org