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 BF698DC5D for ; Tue, 13 Nov 2012 01:20:13 +0000 (UTC) Received: (qmail 37139 invoked by uid 500); 13 Nov 2012 01:20:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 37024 invoked by uid 500); 13 Nov 2012 01: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 37012 invoked by uid 99); 13 Nov 2012 01: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, 13 Nov 2012 01:20:12 +0000 Date: Tue, 13 Nov 2012 01:20:12 +0000 (UTC) From: "longkeyy (JIRA)" To: dev@lucene.apache.org Message-ID: <1015810967.104437.1352769612565.JavaMail.jiratomcat@arcas> In-Reply-To: <1042903714.104431.1352769493010.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (SOLR-4068) when all of shards 's core died update was not work 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-4068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495814#comment-13495814 ] longkeyy commented on SOLR-4068: -------------------------------- private RangeInfo addRangeInfo(String collection) { List ranges; RangeInfo rangeInfo; rangeInfo = new RangeInfo(); Map slices = getSlices(collection); if (slices == null) { throw new SolrException(ErrorCode.BAD_REQUEST, "Can not find collection " + collection + " in " + this); } Map newSlices = new LinkedHashMap(); // delete died shards for (Slice slice : slices.values()) { Collection rep = slice.getReplicas(); for (Replica replica : rep) { for (String liveNode : liveNodes) { if (replica.getName().contains(liveNode)) { newSlices.put(slice.getName(), slice); } } } } Set shards = newSlices.keySet(); ArrayList shardList = new ArrayList(shards.size()); shardList.addAll(shards); Collections.sort(shardList); ranges = hp.partitionRange(shards.size(), Integer.MIN_VALUE, Integer.MAX_VALUE); rangeInfo.ranges = ranges; rangeInfo.shardList = shardList; rangeInfos.put(collection, rangeInfo); return rangeInfo; } > when all of shards 's core died update was not work > --------------------------------------------------- > > Key: SOLR-4068 > URL: https://issues.apache.org/jira/browse/SOLR-4068 > Project: Solr > Issue Type: Bug > Components: SolrCloud > Affects Versions: 4.0 > Reporter: longkeyy > Labels: patch > Fix For: 4.0 > > Original Estimate: 168h > Remaining Estimate: 168h > > when all of shards 's core died update was not work. then getShardId where got a died shardId with any live core. -- 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