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 10454D785 for ; Wed, 21 Nov 2012 21:51:00 +0000 (UTC) Received: (qmail 69540 invoked by uid 500); 21 Nov 2012 21:50:58 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 69479 invoked by uid 500); 21 Nov 2012 21:50:58 -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 69470 invoked by uid 99); 21 Nov 2012 21:50:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2012 21:50:58 +0000 Date: Wed, 21 Nov 2012 21:50:58 +0000 (UTC) From: "Jethro Bakker (JIRA)" To: dev@lucene.apache.org Message-ID: <2121252002.14325.1353534658485.JavaMail.jiratomcat@arcas> In-Reply-To: <1832272752.14307.1353534297969.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (SOLR-4104) SolrCloudServer doesn't support multiple collections on same node MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-4104?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Jethro Bakker updated SOLR-4104: -------------------------------- Description:=20 We have got three solr instances and two collections which are replicated t= wice. So each solr instance has all the data available.=20 The current implementation of CloudSolrServer has 6 slices in my setup but = the end result is 3 urls which are passed to the load balancer.=20 =20 I think the problem is on the first line of the following code: {noformat}=20 if (nodes.put(node, nodeProps) =3D=3D null) { if (!sendToLeaders || (sendToLeaders && coreNodeProps.isLeader())) { String url =3D coreNodeProps.getCoreUrl(); urlList2.add(url); } else if (sendToLeaders) { String url =3D coreNodeProps.getCoreUrl(); replicas.add(url); } } {noformat}=C2=A0 The precondition of this code is that a node can contain one collection, wh= ich is not true. was: We have got three solr instances and two collections which are replicated t= wice. So each solr instance has all the data available.=20 The current implementation of CloudSolrServer has 6 slices in my setup but = the end result is 3 urls which are passed to the load balancer.=20 =20 I think the problem is on the first line of the following code: {noformat}=20 if (nodes.put(node, nodeProps) =3D=3D null) { if (!sendToLeaders || (sendToLeaders && coreNodeProps.isLeader())) { String url =3D coreNodeProps.getCoreUrl(); urlList2.add(url); } else if (sendToLeaders) { String url =3D coreNodeProps.getCoreUrl(); replicas.add(url); } } The precondition of this code is that a node can contain one collection, wh= ich is not true. =20 > SolrCloudServer doesn't support multiple collections on same node > ----------------------------------------------------------------- > > Key: SOLR-4104 > URL: https://issues.apache.org/jira/browse/SOLR-4104 > Project: Solr > Issue Type: Bug > Components: clients - java, SolrCloud > Affects Versions: 4.0 > Reporter: Jethro Bakker > > We have got three solr instances and two collections which are replicated= twice. So each solr instance has all the data available.=20 > The current implementation of CloudSolrServer has 6 slices in my setup bu= t the end result is 3 urls which are passed to the load balancer.=20 > =20 > I think the problem is on the first line of the following code: > {noformat}=20 > if (nodes.put(node, nodeProps) =3D=3D null) { > if (!sendToLeaders || (sendToLeaders && coreNodeProps.isLeader())) { > String url =3D coreNodeProps.getCoreUrl(); > urlList2.add(url); > } else if (sendToLeaders) { > String url =3D coreNodeProps.getCoreUrl(); > replicas.add(url); > } > } > {noformat}=C2=A0 > The precondition of this code is that a node can contain one collection, = which is not true. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs 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