Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2090

Remove duplicate check to metadataFetchInProgress

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • None
    • None

    Description

      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.

      Attachments

        1. KAFKA-2090.patch
          1 kB
          Tim Brooks

        Activity

          People

            timbrooks Tim Brooks
            timbrooks Tim Brooks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: