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 0A2BE200B29 for ; Thu, 30 Jun 2016 12:02:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 074D9160A52; Thu, 30 Jun 2016 10:02:12 +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 732E7160A63 for ; Thu, 30 Jun 2016 12:02:11 +0200 (CEST) Received: (qmail 29874 invoked by uid 500); 30 Jun 2016 10:02:10 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 29841 invoked by uid 99); 30 Jun 2016 10:02:10 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2016 10:02:10 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 298F92C02A4 for ; Thu, 30 Jun 2016 10:02:10 +0000 (UTC) Date: Thu, 30 Jun 2016 10:02:10 +0000 (UTC) From: "Shalin Shekhar Mangar (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SOLR-9264) Optimize ZkController.publishAndWaitForDownStates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Jun 2016 10:02:12 -0000 [ https://issues.apache.org/jira/browse/SOLR-9264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar resolved SOLR-9264. ----------------------------------------- Resolution: Fixed Thanks for the review Hrishikesh! > Optimize ZkController.publishAndWaitForDownStates > ------------------------------------------------- > > Key: SOLR-9264 > URL: https://issues.apache.org/jira/browse/SOLR-9264 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrCloud > Reporter: Shalin Shekhar Mangar > Assignee: Shalin Shekhar Mangar > Fix For: 6.2, master (7.0) > > Attachments: SOLR-9264.patch, SOLR-9264.patch, SOLR-9264.patch > > > ZkController.publishAndWaitForDownStates keeps looping over all collections in the cluster state to ensure that every replica hosted on the current node has been marked as down. This is wasteful when you have a large number of collections because each access to a non-watched collection gets data from ZK. Instead, we can watch the interesting collections (i.e. which have replicas hosted locally) and wait till we see the required state. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org