Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C2C78200C68 for ; Wed, 3 May 2017 13:04:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C157C160BB5; Wed, 3 May 2017 11:04:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 13D6E160BAA for ; Wed, 3 May 2017 13:04:30 +0200 (CEST) Received: (qmail 45166 invoked by uid 500); 3 May 2017 11:04:29 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 45155 invoked by uid 99); 3 May 2017 11:04:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 11:04:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BA8A6C142E for ; Wed, 3 May 2017 11:04:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, MIME_QP_LONG_LINE=0.001, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id jndttUICnBgQ for ; Wed, 3 May 2017 11:04:26 +0000 (UTC) Received: from mail1.ams.nl.openindex.io (mail1.ams.nl.openindex.io [141.105.125.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 615885FDE9 for ; Wed, 3 May 2017 11:04:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail1.ams.nl.openindex.io (Postfix) with ESMTP id 60C841216CA for ; Wed, 3 May 2017 11:04:19 +0000 (UTC) Received: from mail1.ams.nl.openindex.io ([127.0.0.1]) by localhost (mail1.ams.nl.openindex.io [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QMxiA-uFoV9v for ; Wed, 3 May 2017 11:04:19 +0000 (UTC) Received: from mail1.ams.nl.openindex.io (localhost [127.0.0.1]) by mail1.ams.nl.openindex.io (Postfix) with ESMTP id 4EDCB1216C5 for ; Wed, 3 May 2017 11:04:19 +0000 (UTC) Subject: RE: CloudDescriptor.getNumShards() sometimes returns null From: =?utf-8?Q?Markus_Jelsma?= To: =?utf-8?Q?solr-user=40lucene=2Eapache=2Eorg?= , =?utf-8?Q?solr-user?= Date: Wed, 3 May 2017 11:04:19 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: X-Priority: 3 (Normal) X-Mailer: Zarafa 7.2.1-51838 X-Original-To: Message-Id: archived-at: Wed, 03 May 2017 11:04:32 -0000 Any ideas on this one=3F I am still puzzled by this oddity. Many thanks, Markus =20 =20 -----Original message----- > From:Markus Jelsma > Sent: Monday 24th April 2017 17:10 > To: solr-user@lucene.apache.org; solr-user > Subject: RE: CloudDescriptor.getNumShards() sometimes returns null >=20 > Sorry, forgot to mention the version, it is on 6.5.0. >=20 > Thanks, > Markus >=20 > =20 > =20 > -----Original message----- > > From:Erick Erickson > > Sent: Monday 24th April 2017 16:50 > > To: solr-user > > Subject: Re: CloudDescriptor.getNumShards() sometimes returns null > >=20 > > What version of Solr=3F This has been reworked pretty heavily lately no > > 6x and trunk. > >=20 > > On Mon, Apr 24, 2017 at 2:24 AM, Markus Jelsma > > wrote: > > > Hi - that (RE: Overseer session expires on multiple collection creation) was the wrong thread. I meant, any ideas on this one=3F > > > > > > Many thanks, > > > Markus > > > > > > > > > -----Original message----- > > >> From:Markus Jelsma > > >> Sent: Friday 14th April 2017 17:25 > > >> To: solr-user > > >> Subject: CloudDescriptor.getNumShards() sometimes returns null > > >> > > >> Hi - I've got this 2 shard/2 replica cluster. In handler i need the number of shards of the cluster. > > >> > > >> cloudDescriptor =3D core.getCoreDescriptor().getCloudDescriptor(); > > >> return cloudDescriptor.getNumShards(); > > >> > > >> It is, however, depending on which node is executing this, sometimes null! This code only runs on shard leaders. First replica of the first shard always returns 2, but second replica of shard one, even when it is the leader, always gets me null. Same appears to be true for the second shard. > > >> > > >> I am clearly missing something, any ideas to share=3F > > >> > > >> Thanks, > > >> Markus > > >> > >=20 >=20