PoAn Yang created KAFKA-21751:
---------------------------------
Summary: ConnectDistributedTest.test_exactly_once_source fails
because the final consumer gives up after 1 second
Key: KAFKA-21751
URL: https://issues.apache.org/jira/browse/KAFKA-21751
Project: Kafka
Issue Type: Test
Reporter: PoAn Yang
Assignee: PoAn Yang
{{ConnectDistributedTest.test_exactly_once_source}} fails with:
{noformat}
AssertionError('Found validation errors:\nNo records produced by task 0\n No
records produced by task 1\n No records produced by task 2')
{noformat}
The records are in the topic, but the consumer that reads them gives up too
early.
After the workers stop, the test reads the topic once with a
{{ConsoleConsumer}} that uses {{isolation_level="read_committed"}} and
{{{}consumer_timeout_ms=1000{}}}. {{ConsoleConsumer.receive()}} throws
{{TimeoutException}} if the first poll returns nothing and more than
{{timeoutMs}} has passed. Before that first poll can fetch any data, the
consumer has to find the coordinator, join the group, sync, fetch the committed
offsets and list offsets. On a busy host this takes more than one second. The
consumer then exits with "Processed a total of 0 messages", and the test
reports that no task produced anything.
Failed run:
* [https://github.com/opensource4you/clip/actions/runs/47053782305]
* [https://github.com/opensource4you/clip/actions/runs/47260504419]
The proposed fix raises {{consumer_timeout_ms}} to 15000 for both consumers in
{{{}test_exactly_once_source{}}}. {{test_transformations}} in the same file
already uses 15000.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)