[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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-4068) when all of shards 's core died update was not work
[ 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Created] (SOLR-6457) loadblance will not work when count > Integer.MAX_VALUE
longkeyy created SOLR-6457: -- Summary: loadblance will not work when count > Integer.MAX_VALUE Key: SOLR-6457 URL: https://issues.apache.org/jira/browse/SOLR-6457 Project: Solr Issue Type: Bug Components: clients - java Affects Versions: 4.9, 4.8.1, 4.8, 4.7.2, 4.7.1, 4.7, 4.6.1, 4.6, 4.5.1, 4.5, 4.4, 4.3.1, 4.3, 4.2.1, 4.2, 4.1, 4.0 Reporter: longkeyy org.apache.solr.client.solrj.impl.LBHttpSolrServer line 442 int count = counter.incrementAndGet(); ServerWrapper wrapper = serverList[count % serverList.length]; when count > Integer.MAX_VALUE count % serverList.length will loop by 0,-1,0,-1.. suggess to fixup it ,eg: //keep count is greater than 0 int count = counter.incrementAndGet() & 0x7FF; -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Created] (SOLR-7000) FileFloatSource init error while field terms zero
longkeyy created SOLR-7000: -- Summary: FileFloatSource init error while field terms zero Key: SOLR-7000 URL: https://issues.apache.org/jira/browse/SOLR-7000 Project: Solr Issue Type: Bug Components: search Affects Versions: 4.3.1, Trunk Reporter: longkeyy Fix For: 4.3.1 org.apache.solr.search.function.FileFloatSource.getFloats(FileFloatSource, IndexReader) line:273 TermsEnum termsEnum = MultiFields.getTerms(reader, idName).iterator(null); while filed(idName) does not have term(for example docnum = 0) ,MultiFields.getTerms will return null, and .iterator(null) will throw java.lang.NullPointerException fix it: Terms terms = MultiFields.getTerms(reader, idName); if (terms == null) return vals; TermsEnum termsEnum = terms.iterator(null); DocsEnum docsEnum = null; -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org