Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B70E0200C54 for ; Wed, 12 Apr 2017 18:50:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B587A160B95; Wed, 12 Apr 2017 16:50:51 +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 08E4E160B85 for ; Wed, 12 Apr 2017 18:50:50 +0200 (CEST) Received: (qmail 34820 invoked by uid 500); 12 Apr 2017 16:50:45 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 34809 invoked by uid 99); 12 Apr 2017 16:50:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2017 16:50:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9F7D4CFAD0 for ; Wed, 12 Apr 2017 16:50:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Amo2tdpSKNES for ; Wed, 12 Apr 2017 16:50:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 24E505FCBA for ; Wed, 12 Apr 2017 16:50:43 +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 5065CE0D3C for ; Wed, 12 Apr 2017 16:50:42 +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 99B152406B for ; Wed, 12 Apr 2017 16:50:41 +0000 (UTC) Date: Wed, 12 Apr 2017 16:50:41 +0000 (UTC) From: "Ismael Juma (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KAFKA-5060) Offset not found while broker is rebuilding its index after an index corruption MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Apr 2017 16:50:51 -0000 [ https://issues.apache.org/jira/browse/KAFKA-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ismael Juma updated KAFKA-5060: ------------------------------- Labels: reliability (was: ) > Offset not found while broker is rebuilding its index after an index corruption > ------------------------------------------------------------------------------- > > Key: KAFKA-5060 > URL: https://issues.apache.org/jira/browse/KAFKA-5060 > Project: Kafka > Issue Type: Bug > Components: consumer > Affects Versions: 0.10.1.0 > Reporter: Romaric Parmentier > Priority: Critical > Labels: reliability > > After rebooting our kafka servers to change a configuration, one of my consumers running old consumer has fail to find a new leader for a period of 15 minutes. The topic has a replication factor of 2. > When the spare server has finally been found and elected leader, the previous consumed offset was not able to be found because the broker was rebuilding index. > So my consumer has decided to follow the configuration auto.offset.reset which is pretty bad because the offset will exist 2 minutes later: > 2017-04-12 14:59:08,568] WARN Found a corrupted index file due to requirement failed: Corrupt index found, index file (/var/lib/kafka/my_topic-6/00000000130248110337.index) has non-zero size but the last offset is 130248110337 which is no larger than the base offset 130248110337.}. deleting /var/lib/kafka/my_topic-6/00000000130248110337.timeindex, /var/lib/kafka/my_topic-6/00000000130248110337.index and rebuilding index... (kafka.log.Log) > [2017-04-12 15:01:41,490] INFO Completed load of log my_topic-6 with 6146 log segments and log end offset 130251895436 in 169696 ms (kafka.log.Log) > Maybe it is handled by the new consumer or there is a some configuration to handle this case but I didn't find anything -- This message was sent by Atlassian JIRA (v6.3.15#6346)