Re: question about solrCloud joining

2019-08-23 Thread Mikhail Khludnev
for (Slice slice : > > > > > > > > > > > > > > > > > > > > zkController.getClusterState().getCollection(fromIndex).getActiveSlicesArr()) > > > > > { > > > > > if (fromReplica != null) > > > > &g

Re: question about solrCloud joining

2019-08-21 Thread Mikhail Khludnev
t; > zkController.getClusterState().getCollection(fromIndex).getActiveSlicesArr()) > > > > > { > > > > > if (fromReplica != null) > > > > > throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, > > > > > "

Re: question about solrCloud joining

2019-08-21 Thread Lisheng Wang
yet supported " + > > > > fromIndex); > > > > for (Replica replica : slice.getReplicas()) { > > > > if (replica.getNodeName().equals(nodeName)) { > > > > fromReplica = replica.getStr(ZkStateReader.CORE_NAME_PROP); > >

Re: question about solrCloud joining

2019-08-21 Thread Mikhail Khludnev
t; > > > if (fromReplica == null) > > > throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, > > > "SolrCloud join: No active replicas for "+fromIndex+ > > > " found in node " + nodeName); > > >

Re: question about solrCloud joining

2019-08-20 Thread Lisheng Wang
fromReplica; > > } > > > > > > when i run joining from movies on 8983, slice length is 2 as movies have > 2 > > shards. "fromReplica " was assigned in second cycle, because > zkController > > name is 8983 and replica name is 8984 in first cyc

Re: question about solrCloud joining

2019-08-20 Thread Mikhail Khludnev
2 as movies have 2 > shards. "fromReplica " was assigned in second cycle, because zkController > name is 8983 and replica name is 8984 in first cycle. > > but when run on 8984, "fromReplica" was assigned in first cycle, because > zkController name isand replica name

Re: question about solrCloud joining

2019-08-20 Thread Lisheng Wang
ond cycle. Thanks for your patience, it's too long. i'm confused about why use this way to judge "multiple shards", because the result is also wrong running on 8983 even if didnt throw exception. why dont use slice length>1 to judge "multiple shards" ? or maybe h

Re: question about solrCloud joining

2019-08-20 Thread Erick Erickson
ote: > > Hello, > > I have a question about solrCloud joining. i knew solrCloud joining can do > join only when index is not splited to shards, but when i test it, i found a > problem which make me confused. > > i tested it on version 8.2 > > assuming i hav

question about solrCloud joining

2019-08-19 Thread 王立生
Hello, I have a question about solrCloud joining. i knew solrCloud joining can do join only when index is not splited to shards, but when i test it, i found a problem which make me confused. i tested it on version 8.2 assuming i have 2 collections like sample about "joining" on so