You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "longkeyy (JIRA)" <ji...@apache.org> on 2012/11/13 02:18:12 UTC
[jira] [Created] (SOLR-4068) when all of shards 's core died update
was not work
longkeyy created SOLR-4068:
------------------------------
Summary: 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
Fix For: 4.0
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
[jira] [Commented] (SOLR-4068) when all of shards 's core died
update was not work
Posted by "longkeyy (JIRA)" <ji...@apache.org>.
[ 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<Range> ranges;
RangeInfo rangeInfo;
rangeInfo = new RangeInfo();
Map<String,Slice> slices = getSlices(collection);
if (slices == null) {
throw new SolrException(ErrorCode.BAD_REQUEST, "Can not find collection "
+ collection + " in " + this);
}
Map<String,Slice> newSlices = new LinkedHashMap<String,Slice>();
// delete died shards
for (Slice slice : slices.values()) {
Collection<Replica> rep = slice.getReplicas();
for (Replica replica : rep) {
for (String liveNode : liveNodes) {
if (replica.getName().contains(liveNode)) {
newSlices.put(slice.getName(), slice);
}
}
}
}
Set<String> shards = newSlices.keySet();
ArrayList<String> shardList = new ArrayList<String>(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
[jira] [Commented] (SOLR-4068) when all of shards 's core died
update was not work
Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-4068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495815#comment-13495815 ]
Otis Gospodnetic commented on SOLR-4068:
----------------------------------------
I don't follow :(
You said something didn't work. What error message/exception did you get?
> 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