Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A09610AC8 for ; Thu, 6 Mar 2014 16:51:21 +0000 (UTC) Received: (qmail 39127 invoked by uid 500); 6 Mar 2014 16:51:16 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 38726 invoked by uid 500); 6 Mar 2014 16:51:15 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 38718 invoked by uid 99); 6 Mar 2014 16:51:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 16:51:14 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nitin.tnvl@gmail.com designates 209.85.220.181 as permitted sender) Received: from [209.85.220.181] (HELO mail-vc0-f181.google.com) (209.85.220.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 16:51:09 +0000 Received: by mail-vc0-f181.google.com with SMTP id lg15so2825407vcb.40 for ; Thu, 06 Mar 2014 08:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mXxhkRiWp8NXLnKSfrbrOR5BQCi9XmdVVXCyoGuaRk4=; b=kDNKcB3436aCWuPOJ6exxlRE+iGyTb2NfpDXnpUt+Nv3gvi3I9vyCzKV7zMbpeAd8r wypllo6LNEq109qi2Y7vosl0/vFnFmjQuu2r/cnKSSeDPRcZx+BoqEIxrIzn7IFTPeQL mrOlpvFwtC0kE/Crgl/pd4pkKLi7iglC8m8+af5F87dpXQ1FvzlVAIIWwyNJPB4Arwkx k81R4oDXrfSzixQBEncNTPct0jbs5DuMzm2dTgz2QuiTgM/6DywzYfcIS2H93yDPkChr 87HR4/d3EI+q6WST+ujwIud4nL4X6H8gqHsrfgafAZqGvmCjYoRRFp9ME6/DJMilKHX0 mT0A== MIME-Version: 1.0 X-Received: by 10.58.200.229 with SMTP id jv5mr6036786vec.15.1394124648533; Thu, 06 Mar 2014 08:50:48 -0800 (PST) Received: by 10.220.201.74 with HTTP; Thu, 6 Mar 2014 08:50:48 -0800 (PST) Date: Thu, 6 Mar 2014 08:50:48 -0800 Message-ID: Subject: Race condition in Leader Election From: KNitin To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7bd6ad3c72d4f104f3f2f0f9 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd6ad3c72d4f104f3f2f0f9 Content-Type: text/plain; charset=ISO-8859-1 Hi When restarting a node in solrcloud, i run into scenarios where both the replicas for a shard get into "recovering" state and never come up causing the error "No servers hosting this shard". To fix this, I either unload one core or restart one of the nodes again so that one of them becomes the leader. Is there a way to "force" leader election for a shard for solrcloud? Is there a way to break ties automatically (without restarting nodes) to make a node as the leader for the shard? Thanks Nitin --047d7bd6ad3c72d4f104f3f2f0f9--