brary commented on a change in pull request #9244:
URL: https://github.com/apache/kafka/pull/9244#discussion_r483946497
##########
File path: clients/src/main/java/org/apache/kafka/common/utils/Utils.java
##########
@@ -16,10 +16,6 @@
*/
package org.apache.kafka.common.utils;
-import java.nio.BufferUnderflowException;
Review comment:
@manijndl7 Please revert any unnecessary changes in imports. The imports
removed are added again at the bottom. Please add or remove only the diff.
##########
File path: clients/src/main/java/org/apache/kafka/common/utils/Utils.java
##########
@@ -1271,4 +1274,28 @@ private static byte checkRange(final byte i) {
}
return map;
}
+
+ public static long getDateTime(String timestamp) throws ParseException {
Review comment:
Since this is a public function, it would be good to add a javadoc.
Please refer to the function above in the same class for example.
##########
File path:
core/src/test/scala/unit/kafka/admin/ResetConsumerGroupOffsetTest.scala
##########
@@ -26,43 +26,10 @@ import org.apache.kafka.test
import org.junit.Assert._
import org.junit.Test
-import scala.jdk.CollectionConverters._
Review comment:
same as above.
##########
File path: core/src/main/scala/kafka/admin/ConsumerGroupCommand.scala
##########
@@ -17,34 +17,29 @@
package kafka.admin
-import java.text.{ParseException, SimpleDateFormat}
import java.time.{Duration, Instant}
import java.util.Properties
import com.fasterxml.jackson.dataformat.csv.CsvMapper
import com.fasterxml.jackson.module.scala.DefaultScalaModule
import com.fasterxml.jackson.module.scala.experimental.ScalaObjectMapper
+import joptsimple.{OptionException, OptionSpec}
import kafka.utils._
+import org.apache.kafka.clients.CommonClientConfigs
import org.apache.kafka.clients.admin._
import org.apache.kafka.clients.consumer.OffsetAndMetadata
-import org.apache.kafka.clients.CommonClientConfigs
+import org.apache.kafka.common.protocol.Errors
+import org.apache.kafka.common.requests.ListOffsetResponse
import org.apache.kafka.common.utils.Utils
-import org.apache.kafka.common.{KafkaException, Node, TopicPartition}
+import org.apache.kafka.common.{ConsumerGroupState, KafkaException, Node,
TopicPartition}
Review comment:
same comment as above, please revert any unnecessary changes in imports.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]