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

Follower should not send OffsetForLeaderEpoch for undefined leader epochs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0.0
    • 2.1.0
    • None
    • None

    Description

      This is more of an optimization, rather than correctness.

      Currently, if the follower on inter broker protocol version 0.11 and higher, but on older message format, it does not track leader epochs. However, will still send OffsetForLeaderEpoch request to the leader with undefined epoch which is guaranteed to return undefined offset, so that the follower truncated to high watermark. Another example is a bootstrapping follower that does not have any leader epochs recorded, 

      It is cleaner and more efficient to not send OffsetForLeaderEpoch requests to the follower with undefined leader epochs, since we already know the answer.

      Attachments

        Issue Links

          Activity

            People

              enether Stanislav Kozlovski
              apovzner Anna Povzner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: