You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Anna Povzner (JIRA)" <ji...@apache.org> on 2018/05/04 01:04:00 UTC

[jira] [Created] (KAFKA-6859) Follower should not send OffsetForLeaderEpoch for undefined leader epochs

Anna Povzner created KAFKA-6859:
-----------------------------------

             Summary: Follower should not send OffsetForLeaderEpoch for undefined leader epochs
                 Key: KAFKA-6859
                 URL: https://issues.apache.org/jira/browse/KAFKA-6859
             Project: Kafka
          Issue Type: Bug
    Affects Versions: 0.11.0.0
            Reporter: Anna Povzner


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)