kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anna Povzner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-6859) Follower should not send OffsetForLeaderEpoch for undefined leader epochs
Date Fri, 04 May 2018 01:04:00 GMT
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)

Mime
View raw message