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

Only expire preferred read replica if a leader is alive for the topic

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: clients
    • Labels:
      None

      Description

      Fetch from follower functionality periodically expires and refreshes preferred read replica (at `metadata.max.age.ms` interval). This allows a client to discover a better follower to fetch from if one becomes available.

      However the expiration is done even if the current partition has no leader. It makes sense to get the new preferred replica information and update existing one, instead of expiring existing one and then fetching new one.

      Doing this will allow clients to keep on fetching from a follower instead of failing to find leader when all ISR replicas go offline.

       

        Attachments

          Activity

            People

            • Assignee:
              jeffkbkim Jeff Kim
              Reporter:
              jeffkbkim Jeff Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: