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 8FCD1D43E for ; Tue, 30 Oct 2012 08:20:14 +0000 (UTC) Received: (qmail 73309 invoked by uid 500); 30 Oct 2012 08:20:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 73129 invoked by uid 500); 30 Oct 2012 08:20:12 -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 73118 invoked by uid 99); 30 Oct 2012 08:20:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 08:20:12 +0000 Date: Tue, 30 Oct 2012 08:20:12 +0000 (UTC) From: "Po Rui (JIRA)" To: dev@lucene.apache.org Message-ID: <390503674.43647.1351585212189.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (SOLR-4015) the collection create AIP may create a collection that user not expected when the solr-nodes number less than the request collection's replicas number MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Po Rui created SOLR-4015: ---------------------------- Summary: the collection create AIP may create a collection that user not expected when the solr-nodes number less than the request collection's replicas number Key: SOLR-4015 URL: https://issues.apache.org/jira/browse/SOLR-4015 Project: Solr Issue Type: Bug Affects Versions: 4.0, 4.0-BETA Reporter: Po Rui Fix For: 4.0, 4.0-BETA the collection create AIP may create a collection that user not expected when the solr-nodes number less than the request collection's replicas number.EX. the cluster have 5 avalaible solr-nodes. than user want create a collection with API param "numShards=2&numReplicas=2". this will lead to a collection contained 2 shards but one own 2 replicas and another own 1 replica. More serious, this will lead a collection loss one shard while the API param is "numShards=3&numReplicas=2". this will confuse the user. this incomplete collection will confuse the user. so we should discard the colletion create action while the numLivedNode < numShards * (numReplicas + 1) -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org