Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-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 D66A618B5B for ; Wed, 16 Dec 2015 17:59:48 +0000 (UTC) Received: (qmail 15863 invoked by uid 500); 16 Dec 2015 17:59:47 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 15681 invoked by uid 500); 16 Dec 2015 17:59:47 -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 15638 invoked by uid 99); 16 Dec 2015 17:59:47 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Dec 2015 17:59:47 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EAA7D2C1F82 for ; Wed, 16 Dec 2015 17:59:46 +0000 (UTC) Date: Wed, 16 Dec 2015 17:59:46 +0000 (UTC) From: "Mark Miller (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-8416) Solr collection creation API should return after all cores are alive 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/SOLR-8416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15060419#comment-15060419 ] Mark Miller commented on SOLR-8416: ----------------------------------- Thanks for the patch, a couple comments: * Usually it's better to use SolrException over RuntimeException * Where you catch the interrupted exception, you should restore the interrupted status. * The failure exception should probably give detail on which replicas were not found to be live and ACTIVE. * Should not use hard coded 'active' but the relevant constants. * Should probably check if the replicas node is listed under live nodes as well as if it's active? > Solr collection creation API should return after all cores are alive > --------------------------------------------------------------------- > > Key: SOLR-8416 > URL: https://issues.apache.org/jira/browse/SOLR-8416 > Project: Solr > Issue Type: Bug > Components: SolrCloud > Reporter: Michael Sun > Attachments: SOLR-8416.patch > > > Currently the collection creation API returns once all cores are created. In large cluster the cores may not be alive for some period of time after cores are created. For any thing requested during that period, Solr appears unstable and can return failure. Therefore it's better the collection creation API waits for all cores to become alive and returns after that. -- 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