You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "TaiJuWu (Jira)" <ji...@apache.org> on 2024/07/27 13:29:00 UTC
[jira] [Created] (KAFKA-17209) Revisit testCurrentLag for AsyncKafkaConsumer
TaiJuWu created KAFKA-17209:
-------------------------------
Summary: Revisit testCurrentLag for AsyncKafkaConsumer
Key: KAFKA-17209
URL: https://issues.apache.org/jira/browse/KAFKA-17209
Project: Kafka
Issue Type: Test
Reporter: TaiJuWu
Assignee: TaiJuWu
The difference between {{ClassicConsumer}} and {{AsyncConsumer}} is ClassicConsumer is single thread and AsyncConsumer is two thread, one is app thread, the other is background thread.
{{Fetch}} Request is generated by background thread and {{ListOffset}} Request is generated by application thread.
This will make {{testCurrentLag}} fail if AsyncConsumer generated {{Fetch Request}} first.
So we support out of order feature for {{MockClient}} to resolve issue.
Another difference between asyncConsumer and ClassicConsumer is front do generate additional {{FetchOffset}} Request from CommitRequestManager but ClassicConsumer does not have the request.
The reason is coordinator is not ready during test for {{ClassicConsumer}} so we can ignore this request for {{AsyncConsumer.}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)