[ 
https://issues.apache.org/jira/browse/KAFKA-15638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kirk True updated KAFKA-15638:
------------------------------
    Description: 
Regarding this comment in {{{}testPollResultTimer{}}}...
{code:java}
// purposely setting a non-MAX time to ensure it is returning Long.MAX_VALUE 
upon success|
{code}
[~junrao] asked:
{quote}Which call is returning Long.MAX_VALUE?
{quote}

  was:
Thanks for the reply. I still don't quite understand the test. Why do we 
duplicate the following code both inside and outside of {{{}setWakeupHook{}}}?
 
{code:java}
networkClientDelegate.disconnectAsync(readReplica);
networkClientDelegate.poll(time.timer(0));
{code}
 
MockClient is only woken up through 
{{{}networkClientDelegate.disconnectAsync{}}}.


> Investigate ConsumerNetworkThread's testPollResultTimer
> -------------------------------------------------------
>
>                 Key: KAFKA-15638
>                 URL: https://issues.apache.org/jira/browse/KAFKA-15638
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: clients, consumer
>            Reporter: Kirk True
>            Assignee: Kirk True
>            Priority: Minor
>              Labels: consumer-threading-refactor
>
> Regarding this comment in {{{}testPollResultTimer{}}}...
> {code:java}
> // purposely setting a non-MAX time to ensure it is returning Long.MAX_VALUE 
> upon success|
> {code}
> [~junrao] asked:
> {quote}Which call is returning Long.MAX_VALUE?
> {quote}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to