File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
spring-kafka-test/src/main/java/org/springframework/kafka/test Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 5050import org .apache .kafka .clients .admin .NewTopic ;
5151import org .apache .kafka .clients .consumer .Consumer ;
5252import org .apache .kafka .clients .consumer .ConsumerRebalanceListener ;
53- import org .apache .kafka .clients .consumer .ConsumerRecords ;
5453import org .apache .kafka .common .TopicPartition ;
5554import org .apache .kafka .common .security .auth .SecurityProtocol ;
5655import org .apache .kafka .common .utils .AppInfoParser ;
@@ -770,10 +769,9 @@ public void onPartitionsAssigned(Collection<TopicPartition> partitions) {
770769 }
771770
772771 });
773- ConsumerRecords <?, ?> records = null ;
774772 int n = 0 ;
775773 while (assigned .get () == null && n ++ < 600 ) { // NOSONAR magic #
776- records = consumer .poll (Duration .ofMillis (100 )); // force assignment NOSONAR magic #
774+ consumer .poll (Duration .ofMillis (100 )); // force assignment NOSONAR magic #
777775 }
778776 if (assigned .get () != null ) {
779777 logger .debug (() -> "Partitions assigned "
You can’t perform that action at this time.
0 commit comments