[
https://issues.apache.org/jira/browse/KAFKA-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jun Rao resolved KAFKA-2090.
----------------------------
Resolution: Fixed
Fix Version/s: 0.8.3
Assignee: Tim Brooks
Thanks for the patch. +1 and committed to trunk.
> Remove duplicate check to metadataFetchInProgress
> -------------------------------------------------
>
> Key: KAFKA-2090
> URL: https://issues.apache.org/jira/browse/KAFKA-2090
> Project: Kafka
> Issue Type: Improvement
> Reporter: Tim Brooks
> Assignee: Tim Brooks
> Priority: Minor
> Fix For: 0.8.3
>
> Attachments: KAFKA-2090.patch
>
>
> In the NetworkClient class on a call to poll() there are three checks
> (timeToNextMetadataUpdate, timeToNextReconnectAttempt, waitForMetadataFetch)
> made to see if a metadata update should be made. If all of these == 0 then an
> update is performed.
> However, in the if block a second check is made to metadataFetchInProgress.
> This only make sense in a multithreaded environment. However, as the variable
> is not volatile I suspect this is not the case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)