diff --git a/extensions-contrib/rabbit-stream-indexing-service/src/test/java/org/apache/druid/indexing/rabbitstream/supervisor/RabbitStreamSupervisorTest.java b/extensions-contrib/rabbit-stream-indexing-service/src/test/java/org/apache/druid/indexing/rabbitstream/supervisor/RabbitStreamSupervisorTest.java index 817c46fa7b1f..5694d3440118 100644 --- a/extensions-contrib/rabbit-stream-indexing-service/src/test/java/org/apache/druid/indexing/rabbitstream/supervisor/RabbitStreamSupervisorTest.java +++ b/extensions-contrib/rabbit-stream-indexing-service/src/test/java/org/apache/druid/indexing/rabbitstream/supervisor/RabbitStreamSupervisorTest.java @@ -412,6 +412,6 @@ public void testCreateTaskIOConfig() ) ); - Assert.assertEquals(ioConfig.getTaskDuration(), Duration.standardMinutes(30)); + Assert.assertEquals(Duration.standardMinutes(30), ioConfig.getTaskDuration()); } } diff --git a/extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaConsumerMonitor.java b/extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaConsumerMonitor.java index 9ea0e5a0106c..6a8c6c149051 100644 --- a/extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaConsumerMonitor.java +++ b/extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaConsumerMonitor.java @@ -45,7 +45,6 @@ public class KafkaConsumerMonitor extends AbstractMonitor .put("records-consumed-total", "kafka/consumer/recordsConsumed") .build(); private static final String TOPIC_TAG = "topic"; - private static final String DATASOURCE_TAG = "datasource"; private static final Set TOPIC_METRIC_TAGS = ImmutableSet.of("client-id", TOPIC_TAG); private final KafkaConsumer consumer; diff --git a/extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaIndexTask.java b/extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaIndexTask.java index cb77cbae16e7..e5ff77467cdb 100644 --- a/extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaIndexTask.java +++ b/extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaIndexTask.java @@ -111,8 +111,7 @@ protected KafkaRecordSupplier newTaskRecordSupplier(final TaskToolbox toolbox) final KafkaRecordSupplier recordSupplier = new KafkaRecordSupplier(props, configMapper, kafkaIndexTaskIOConfig.getConfigOverrides(), - kafkaIndexTaskIOConfig.isMultiTopic() - ); + kafkaIndexTaskIOConfig.isMultiTopic()); if (toolbox.getMonitorScheduler() != null) { toolbox.getMonitorScheduler().addMonitor(recordSupplier.monitor()); diff --git a/extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/KafkaRecordSupplierTest.java b/extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/KafkaRecordSupplierTest.java index bef7096db512..bfd81464ba2f 100644 --- a/extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/KafkaRecordSupplierTest.java +++ b/extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/KafkaRecordSupplierTest.java @@ -73,7 +73,6 @@ public class KafkaRecordSupplierTest private static KafkaTopicPartition PARTITION_1 = new KafkaTopicPartition(false, null, 1); private static String TOPIC = "topic"; - private static String STREAM = "stream"; private static int TOPIC_POS_FIX = 0; private static TestingCluster ZK_SERVER; private static TestBroker KAFKA_SERVER;