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

Detect deleted log directory before becoming leader

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hachikuji Jason Gustafson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: