github-advanced-security[bot] commented on code in PR #19858:
URL: https://github.com/apache/druid/pull/19858#discussion_r3704335546


##########
extensions-core/kafka-extraction-namespace/src/test/java/org/apache/druid/query/lookup/KafkaLookupExtractorFactoryTest.java:
##########
@@ -247,7 +256,11 @@
   @Test
   public void testStartStop()
   {
-    Consumer<String, String> kafkaConsumer = new 
MockConsumer<>(OffsetResetStrategy.EARLIEST);
+    final MockConsumer<String, String> kafkaConsumer = new 
MockConsumer<>(OffsetResetStrategy.EARLIEST);

Review Comment:
   ## CodeQL / Deprecated method or constructor invocation
   
   Invoking [MockConsumer.MockConsumer](1) should be avoided because it has 
been deprecated.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/11467)



##########
extensions-core/kafka-extraction-namespace/src/test/java/org/apache/druid/query/lookup/KafkaLookupExtractorFactoryTest.java:
##########
@@ -329,7 +408,11 @@
   @Test
   public void testStartStartStopStop()
   {
-    Consumer<String, String> kafkaConsumer = new 
MockConsumer<>(OffsetResetStrategy.EARLIEST);
+    final MockConsumer<String, String> kafkaConsumer = new 
MockConsumer<>(OffsetResetStrategy.EARLIEST);

Review Comment:
   ## CodeQL / Deprecated method or constructor invocation
   
   Invoking [MockConsumer.MockConsumer](1) should be avoided because it has 
been deprecated.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/11469)



##########
extensions-core/kafka-extraction-namespace/src/test/java/org/apache/druid/query/lookup/KafkaLookupExtractorFactoryTest.java:
##########
@@ -271,6 +284,72 @@
     EasyMock.verify(cacheManager);
   }
 
+  @Test
+  public void testStartWaitsForInitialEndOffsets() throws Exception
+  {
+    final MockConsumer<String, String> kafkaConsumer = new 
MockConsumer<>(OffsetResetStrategy.EARLIEST);

Review Comment:
   ## CodeQL / Deprecated method or constructor invocation
   
   Invoking [MockConsumer.MockConsumer](1) should be avoided because it has 
been deprecated.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/11468)



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