Kafka
  1. Kafka
  2. KAFKA-1087

Empty topic list causes consumer to fetch metadata of all topics

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The ClientUtils fetches metadata for all topics if the topic set is empty.

      If the topic list of a consumer is empty, the following happens if a rebalance is triggered:

      • The fetcher is restarted, fetcher.startConnections() starts a LeaderFinderThread
      • LeaderFinderThread waits on a condition
      • fetcher.startConnections() signals the aforementioned condition
      • LeaderFinderThread obtains metadata for all topics since the topic list is empty.
      1. KAFKA-1087.patch
        0.7 kB
        Swapnil Ghike

        Activity

        Neha Narkhede made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Neha Narkhede made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Swapnil Ghike made changes -
        Description The ClientUtils fetches metadata for all topics if the topic set is empty.

        If the topic list of a consumer is empty, the following happens if a rebalance is triggered:
        - The fetcher is restarted, it starts a LeaderFinderThread
        - LeaderFinderThread waits on a condition
        - fetcher.startConnections() signals the aforementioned condition
        - LeaderFinderThread obtains metadata for all topics since the topic list is empty.
        The ClientUtils fetches metadata for all topics if the topic set is empty.

        If the topic list of a consumer is empty, the following happens if a rebalance is triggered:
        - The fetcher is restarted, fetcher.startConnections() starts a LeaderFinderThread
        - LeaderFinderThread waits on a condition
        - fetcher.startConnections() signals the aforementioned condition
        - LeaderFinderThread obtains metadata for all topics since the topic list is empty.
        Swapnil Ghike made changes -
        Description The ClientUtils fetches metadata for all topics if the topic set is empty.

        If the topic list of a consumer is empty, the following happens if a rebalance is triggered:
        - LeaderFinderThread waits on a condition
        - The fetcher is restarted and it signals the aforementioned condition
        - LeaderFinderThread obtains metadata for all topics since the topic list is empty.
        The ClientUtils fetches metadata for all topics if the topic set is empty.

        If the topic list of a consumer is empty, the following happens if a rebalance is triggered:
        - The fetcher is restarted, it starts a LeaderFinderThread
        - LeaderFinderThread waits on a condition
        - fetcher.startConnections() signals the aforementioned condition
        - LeaderFinderThread obtains metadata for all topics since the topic list is empty.
        Swapnil Ghike made changes -
        Attachment KAFKA-1087.patch [ 12608394 ]
        Swapnil Ghike made changes -
        Field Original Value New Value
        Affects Version/s 0.8 [ 12317244 ]
        Swapnil Ghike created issue -

          People

          • Assignee:
            Swapnil Ghike
            Reporter:
            Swapnil Ghike
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development