Skip to content

Commit

Permalink
GH-2061: Remove Unused Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Jan 13, 2022
1 parent 64891b3 commit 65a7fd2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import org.apache.kafka.clients.admin.NewTopic;
import org.apache.kafka.clients.consumer.Consumer;
import org.apache.kafka.clients.consumer.ConsumerRebalanceListener;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.security.auth.SecurityProtocol;
import org.apache.kafka.common.utils.AppInfoParser;
Expand Down Expand Up @@ -770,10 +769,9 @@ public void onPartitionsAssigned(Collection<TopicPartition> partitions) {
}

});
ConsumerRecords<?, ?> records = null;
int n = 0;
while (assigned.get() == null && n++ < 600) { // NOSONAR magic #
records = consumer.poll(Duration.ofMillis(100)); // force assignment NOSONAR magic #
consumer.poll(Duration.ofMillis(100)); // force assignment NOSONAR magic #
}
if (assigned.get() != null) {
logger.debug(() -> "Partitions assigned "
Expand Down

0 comments on commit 65a7fd2

Please sign in to comment.