[
https://issues.apache.org/jira/browse/KAFKA-16792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878608#comment-17878608
]
PoAn Yang commented on KAFKA-16792:
-----------------------------------
The {{ApplicationEventProcessor#process(PollEvent)}} only reset timer for some
request managers. Even if we use {{ApplicationEventHandler#addAndGet}}, we
still can't guarantee {{runOnce}} is executed. We may need
{{ConsumerNetworkThread}} to send a {{BackgroundEvent}} to make sure the
{{runOnce}} is happened. However, this ㄇapproach may make the process more
complex.
> Enable consumer unit tests that fail to fetch offsets only for new consumer
> with poll(0)
> ----------------------------------------------------------------------------------------
>
> Key: KAFKA-16792
> URL: https://issues.apache.org/jira/browse/KAFKA-16792
> Project: Kafka
> Issue Type: Test
> Components: clients, consumer, unit tests
> Reporter: Lianet Magrans
> Assignee: PoAn Yang
> Priority: Blocker
> Labels: kip-848-client-support
> Fix For: 4.0.0
>
>
> Enable the following unit tests for the new async consumer in
> KafkaConsumerTest:
> - testCurrentLag
> - testFetchStableOffsetThrowInPoll
> - testListOffsetShouldUpdateSubscriptions
> - testPollReturnsRecords
> - testResetToCommittedOffset
> - testResetUsingAutoResetPolicy
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)