showuon commented on a change in pull request #11631: URL: https://github.com/apache/kafka/pull/11631#discussion_r800141737
########## File path: clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java ########## @@ -192,6 +192,9 @@ private final String partitionLost = "Hit partition lost "; private final Collection<TopicPartition> singleTopicPartition = Collections.singleton(new TopicPartition(topic, 0)); + private final Time time = new MockTime(); + private final SubscriptionState subscription = new SubscriptionState(new LogContext(), OffsetResetStrategy.EARLIEST); + private final ConsumerPartitionAssignor assignor = new RoundRobinAssignor(); Review comment: side cleanup: create global variables to share in tests. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org