From jira-return-9083-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Thu Jan 25 22:34:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id A9D2B180651 for ; Thu, 25 Jan 2018 22:34:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9A13E160C4F; Thu, 25 Jan 2018 21:34:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E0187160C17 for ; Thu, 25 Jan 2018 22:34:03 +0100 (CET) Received: (qmail 21674 invoked by uid 500); 25 Jan 2018 21:34:03 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 21662 invoked by uid 99); 25 Jan 2018 21:34:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2018 21:34:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 79C611A0D4A for ; Thu, 25 Jan 2018 21:34:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 006bNxDyV_jQ for ; Thu, 25 Jan 2018 21:34:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 98A745F2C3 for ; Thu, 25 Jan 2018 21:34:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 11C54E2584 for ; Thu, 25 Jan 2018 21:34:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 816582410A for ; Thu, 25 Jan 2018 21:34:00 +0000 (UTC) Date: Thu, 25 Jan 2018 21:34:00 +0000 (UTC) From: "Dong Lin (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KAFKA-6488) Prevent log corruption in case of OOM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dong Lin created KAFKA-6488: ------------------------------- Summary: Prevent log corruption in case of OOM Key: KAFKA-6488 URL: https://issues.apache.org/jira/browse/KAFKA-6488 Project: Kafka Issue Type: Bug Reporter: Dong Lin Assignee: Dong Lin Currently we will append the message to the log before updating the LEO. Ho= wever, if there is OOM in between these two steps, KafkaRequestHandler thre= ad=C2=A0can 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 offse= t in the log. -- This message was sent by Atlassian JIRA (v7.6.3#76005)