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

Prevent log corruption in case of OOM

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently we will append the message to the log before updating the LEO. However, if there is OOM in between these two steps, KafkaRequestHandler thread can append a message to the log without updating the LEO. The next message may be appended with the same offset as the first message. This can prevent broker from being started because two messages have the same offset in the log.

        Attachments

          Activity

            People

            • Assignee:
              lindong Dong Lin
              Reporter:
              lindong Dong Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: