You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jason Gustafson (Jira)" <ji...@apache.org> on 2019/12/30 22:45:00 UTC

[jira] [Created] (KAFKA-9347) Detect deleted log directory before becoming leader

Jason Gustafson created KAFKA-9347:
--------------------------------------

             Summary: Detect deleted log directory before becoming leader
                 Key: KAFKA-9347
                 URL: https://issues.apache.org/jira/browse/KAFKA-9347
             Project: Kafka
          Issue Type: Improvement
            Reporter: Jason Gustafson


There is no protection currently if a broker has had its log directory deleted to prevent it from becoming the leader of a partition that it still remains in the ISR of. This scenario can happen when the last remaining replica in the ISR is shutdown. It will remain in the ISR and be eligible for leadership as soon as it starts up. It would be useful to either detect this case situation dynamically in order to force the user to do an unclean election or recover another broker. One option might be just to pass a flag on startup to specify that a broker should not be eligible for leadership. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)