Skip to content

Commit 0e19947

Browse files
committed
WARNING poll timeout issue
1 parent 6d9206a commit 0e19947

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/security/GroupAuthorizerIntegrationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ private void testConsumeUnsubscribeWithOrWithoutGroupPermission(ClusterInstance
329329
producer.send(new ProducerRecord<>(topic, "message".getBytes())).get();
330330
consumer.subscribe(Collections.singletonList(topic));
331331
TestUtils.waitForCondition(() -> {
332-
ConsumerRecords<byte[], byte[]> records = consumer.poll(Duration.ofSeconds(15));
332+
ConsumerRecords<byte[], byte[]> records = consumer.poll(Duration.ofMillis(100));
333333
return records.count() == 1;
334334
}, "consumer failed to receive message");
335335
if (!withGroupPermission) {
@@ -385,7 +385,7 @@ private void testConsumeCloseWithGroupPermission(ClusterInstance clusterInstance
385385
producer.send(new ProducerRecord<>(topic, "message".getBytes())).get();
386386
consumer.subscribe(List.of(topic));
387387
TestUtils.waitForCondition(() -> {
388-
ConsumerRecords<byte[], byte[]> records = consumer.poll(Duration.ofSeconds(15));
388+
ConsumerRecords<byte[], byte[]> records = consumer.poll(Duration.ofMillis(100));
389389
return records.count() == 1;
390390
}, "consumer failed to receive message");
391391
} finally {
@@ -435,7 +435,7 @@ private void testAuthorizedProduceAndConsume(ClusterInstance clusterInstance, Gr
435435
TopicPartition topicPartition = new TopicPartition(topic, 0);
436436
consumer.assign(List.of(topicPartition));
437437
TestUtils.waitForCondition(() -> {
438-
ConsumerRecords<byte[], byte[]> records = consumer.poll(Duration.ofSeconds(15));
438+
ConsumerRecords<byte[], byte[]> records = consumer.poll(Duration.ofMillis(100));
439439
return records.count() == 1;
440440
}, "consumer failed to receive message");
441441
}

0 commit comments

Comments
 (0)