Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Duplicate
-
3.7.0
-
None
Description
The integration test PlaintextConsumerTest.testMaxPollIntervalMs is failing when using the AsyncKafkaConsumer.
The error is:
org.opentest4j.AssertionFailedError: Timed out before expected rebalance completed at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38) at org.junit.jupiter.api.Assertions.fail(Assertions.java:134) at kafka.api.AbstractConsumerTest.awaitRebalance(AbstractConsumerTest.scala:317) at kafka.api.PlaintextConsumerTest.testMaxPollIntervalMs(PlaintextConsumerTest.scala:194)
The logs include this line:
[2023-12-13 15:11:16,134] WARN [Consumer clientId=ConsumerTestConsumer, groupId=my-test] consumer poll timeout has expired. This means the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time processing messages. You can address this either by increasing max.poll.interval.ms or by reducing the maximum size of batches returned in poll() with max.poll.records. (org.apache.kafka.clients.consumer.internals.HeartbeatRequestManager:188)
I don't know if that's related or not.
Attachments
Issue Links
- is caused by
-
KAFKA-16258 Stale member should trigger onPartitionsLost when leaving group
- Resolved
- is duplicated by
-
KAFKA-15993 Enable max poll integration tests that depend on callback invocation
- Resolved
- relates to
-
KAFKA-16104 Enable additional PlaintextConsumerTest tests for new consumer
- Resolved