Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CAA7DF7FD for ; Tue, 2 Apr 2013 19:37:15 +0000 (UTC) Received: (qmail 79545 invoked by uid 500); 2 Apr 2013 19:37:15 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 79505 invoked by uid 500); 2 Apr 2013 19:37:15 -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 79494 invoked by uid 99); 2 Apr 2013 19:37:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 19:37:15 +0000 Date: Tue, 2 Apr 2013 19:37:15 +0000 (UTC) From: "Neha Narkhede (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-840) Controller tries to perform preferred replica election on failover before state machines have started up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13620167#comment-13620167 ] Neha Narkhede commented on KAFKA-840: ------------------------------------- That would make sense, but with the current shutdown logic of the server, zkclient is closed before controller is shutdown. So doing that will raise an error. > Controller tries to perform preferred replica election on failover before state machines have started up > -------------------------------------------------------------------------------------------------------- > > Key: KAFKA-840 > URL: https://issues.apache.org/jira/browse/KAFKA-840 > Project: Kafka > Issue Type: Bug > Components: controller > Affects Versions: 0.8 > Reporter: Swapnil Ghike > Assignee: Swapnil Ghike > Priority: Blocker > Labels: bugs > Fix For: 0.8 > > Attachments: kafka-840-after-commit-v1.patch, kafka-840.patch, kafka-840-v2.patch > > > If the admin/preferred_replica_election path is non-empty when a new controller starts, the controller attempts to perform preferred replica election before the partition and replica state machine have been initialized. In this case, the controller will try to make invalid state transitions. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira