You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Pengwei (JIRA)" <ji...@apache.org> on 2017/06/10 03:52:18 UTC

[jira] [Created] (KAFKA-5425) Kafka replication support all log segment files sync with leader

Pengwei created KAFKA-5425:
------------------------------

             Summary: Kafka replication support all log segment files sync with leader
                 Key: KAFKA-5425
                 URL: https://issues.apache.org/jira/browse/KAFKA-5425
             Project: Kafka
          Issue Type: Improvement
            Reporter: Pengwei
            Priority: Minor


Currently kafka replication only support follower sync the leader with the 
latest  fetch offset, it means offsets smaller than this fetch offset's messages are already sync.  After complete sync with the leader, it will update the fetch offset to log end offset.

But if the log segments which latest offset is smaller than current fetch offset are being delete, the replication will not sync these log segments back to kafka.   In this case, there is a risk of losing messages if the follow is becoming a leader,  consumer begin to consume from begin to end will found some messages are lost.

Can we  improve the kafka replication mechanism to ensure follow''s all log segments are the same as the leader? Even if some log segments are delete,  will try to recover from the leader



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)