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

Potential leader epoch checkpoint file corruption on OS crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.7.0
    • 3.8.0
    • core
    • None

    Description

      Pointed out by junrao on GitHub

      A patch for KAFKA-15046 got rid of fsync of leader-epoch ckeckpoint file in some path for performance reason.

      However, since now checkpoint file is flushed to the device asynchronously by OS, content would corrupt if OS suddenly crashes (e.g. by power failure, kernel panic) in the middle of flush.

      Corrupted checkpoint file could prevent Kafka broker to start-up

      Attachments

        Issue Links

          Activity

            People

              ocadaruma Haruki Okada
              ocadaruma Haruki Okada
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: