You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Markus Jelsma <ma...@openindex.io> on 2016/05/04 13:24:59 UTC
Nodes appear twice in state.json
Hi - we've just upgraded a development environment from 5.5 to Solr 6.0. After the upgrade, which went fine, we see two replica's appear twice in the cloud view (see below), both being leader. We've seen this happen before on some older 5.x versions. Is there a Jira issue i am missing? An unknown issue?
Also, how to fix this. How do we remove the double node from the state.json?
Many thanks!
Markus
{"search":{
"replicationFactor":"3",
"shards":{
"shard1":{
"range":"80000000-ffffffff",
"state":"active",
"replicas":{
"core_node6":{
"core":"search_shard1_replica1",
"base_url":"http://idx5.oi.dev:8983/solr",
"node_name":"idx5.oi.dev:8983_solr",
"state":"down"},
"core_node2":{
"core":"search_shard1_replica2",
"base_url":"http://idx2.oi.dev:8983/solr",
"node_name":"idx2.oi.dev:8983_solr",
"state":"active",
"leader":"true"},
"core_node3":{
"core":"search_shard1_replica2",
"base_url":"http://idx2.oi.dev:8983/solr",
"node_name":"idx2.oi.dev:8983_solr",
"state":"down",
"leader":"true"},
"core_node5":{
"core":"search_shard1_replica3",
"base_url":"http://idx3.oi.dev:8983/solr",
"node_name":"idx3.oi.dev:8983_solr",
"state":"down"}}},
"shard2":{
"range":"0-7fffffff",
"state":"active",
"replicas":{
"core_node1":{
"core":"search_shard2_replica1",
"base_url":"http://idx4.oi.dev:8983/solr",
"node_name":"idx4.oi.dev:8983_solr",
"state":"down"},
"core_node2":{
"core":"search_shard2_replica2",
"base_url":"http://idx6.oi.dev:8983/solr",
"node_name":"idx6.oi.dev:8983_solr",
"state":"down"},
"core_node4":{
"core":"search_shard2_replica3",
"base_url":"http://idx1.oi.dev:8983/solr",
"node_name":"idx1.oi.dev:8983_solr",
"state":"active",
"leader":"true"}}}},
"router":{"name":"compositeId"},
"maxShardsPerNode":"1",
"autoAddReplicas":"false"}}
Re: Nodes appear twice in state.json
Posted by solr2020 <ps...@gmail.com>.
i am able to delete the down/unused cores which does not actually a core but
it have an entry in state.json using the DELETEREPLICA API.
/admin/collections?action=DELETEREPLICA&collection=collection
name&shard=shardname&replica=(dead/unused core name listed in state.json)
eg:
/admin/collections?action=DELETEREPLICA&collection=collection
name&shard=shardname&replica=core_node3
--
View this message in context: http://lucene.472066.n3.nabble.com/Nodes-appear-twice-in-state-json-tp4274504p4275797.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Nodes appear twice in state.json
Posted by solr2020 <ps...@gmail.com>.
Hi Shalin,
How do we edit state.json? Do we have any utility to edit state.json as we
have for clusterstate.json?
Thanks.
--
View this message in context: http://lucene.472066.n3.nabble.com/Nodes-appear-twice-in-state-json-tp4274504p4275791.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Nodes appear twice in state.json
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Hmm not good. Definitely a new bug. Please open an issue.
Please look up the core node name in core.properties for that particular
core and remove the other one from state.json manually. Probably best to do
a cluster restart to avoid surprises. This is certainly uncharted territory.
On Wed, May 4, 2016 at 6:54 PM, Markus Jelsma <ma...@openindex.io>
wrote:
> Hi - we've just upgraded a development environment from 5.5 to Solr 6.0.
> After the upgrade, which went fine, we see two replica's appear twice in
> the cloud view (see below), both being leader. We've seen this happen
> before on some older 5.x versions. Is there a Jira issue i am missing? An
> unknown issue?
>
> Also, how to fix this. How do we remove the double node from the
> state.json?
>
> Many thanks!
> Markus
>
> {"search":{
> "replicationFactor":"3",
> "shards":{
> "shard1":{
> "range":"80000000-ffffffff",
> "state":"active",
> "replicas":{
> "core_node6":{
> "core":"search_shard1_replica1",
> "base_url":"http://idx5.oi.dev:8983/solr",
> "node_name":"idx5.oi.dev:8983_solr",
> "state":"down"},
> "core_node2":{
> "core":"search_shard1_replica2",
> "base_url":"http://idx2.oi.dev:8983/solr",
> "node_name":"idx2.oi.dev:8983_solr",
> "state":"active",
> "leader":"true"},
> "core_node3":{
> "core":"search_shard1_replica2",
> "base_url":"http://idx2.oi.dev:8983/solr",
> "node_name":"idx2.oi.dev:8983_solr",
> "state":"down",
> "leader":"true"},
> "core_node5":{
> "core":"search_shard1_replica3",
> "base_url":"http://idx3.oi.dev:8983/solr",
> "node_name":"idx3.oi.dev:8983_solr",
> "state":"down"}}},
> "shard2":{
> "range":"0-7fffffff",
> "state":"active",
> "replicas":{
> "core_node1":{
> "core":"search_shard2_replica1",
> "base_url":"http://idx4.oi.dev:8983/solr",
> "node_name":"idx4.oi.dev:8983_solr",
> "state":"down"},
> "core_node2":{
> "core":"search_shard2_replica2",
> "base_url":"http://idx6.oi.dev:8983/solr",
> "node_name":"idx6.oi.dev:8983_solr",
> "state":"down"},
> "core_node4":{
> "core":"search_shard2_replica3",
> "base_url":"http://idx1.oi.dev:8983/solr",
> "node_name":"idx1.oi.dev:8983_solr",
> "state":"active",
> "leader":"true"}}}},
> "router":{"name":"compositeId"},
> "maxShardsPerNode":"1",
> "autoAddReplicas":"false"}}
>
>
>
>
--
Regards,
Shalin Shekhar Mangar.
RE: Nodes appear twice in state.json
Posted by Markus Jelsma <ma...@openindex.io>.
Issue created!
https://issues.apache.org/jira/browse/SOLR-9089
-----Original message-----
> From:Shalin Shekhar Mangar <sh...@gmail.com>
> Sent: Thursday 5th May 2016 12:58
> To: solr-user@lucene.apache.org
> Subject: Re: Nodes appear twice in state.json
>
> Hmm not good. Definitely a new bug. Please open an issue.
>
> Please look up the core node name in core.properties for that particular
> core and remove the other one from state.json manually. Probably best to do
> a cluster restart to avoid surprises. This is certainly uncharted territory.
>
> On Wed, May 4, 2016 at 6:54 PM, Markus Jelsma <ma...@openindex.io>
> wrote:
>
> > Hi - we've just upgraded a development environment from 5.5 to Solr 6.0.
> > After the upgrade, which went fine, we see two replica's appear twice in
> > the cloud view (see below), both being leader. We've seen this happen
> > before on some older 5.x versions. Is there a Jira issue i am missing? An
> > unknown issue?
> >
> > Also, how to fix this. How do we remove the double node from the
> > state.json?
> >
> > Many thanks!
> > Markus
> >
> > {"search":{
> > "replicationFactor":"3",
> > "shards":{
> > "shard1":{
> > "range":"80000000-ffffffff",
> > "state":"active",
> > "replicas":{
> > "core_node6":{
> > "core":"search_shard1_replica1",
> > "base_url":"http://idx5.oi.dev:8983/solr",
> > "node_name":"idx5.oi.dev:8983_solr",
> > "state":"down"},
> > "core_node2":{
> > "core":"search_shard1_replica2",
> > "base_url":"http://idx2.oi.dev:8983/solr",
> > "node_name":"idx2.oi.dev:8983_solr",
> > "state":"active",
> > "leader":"true"},
> > "core_node3":{
> > "core":"search_shard1_replica2",
> > "base_url":"http://idx2.oi.dev:8983/solr",
> > "node_name":"idx2.oi.dev:8983_solr",
> > "state":"down",
> > "leader":"true"},
> > "core_node5":{
> > "core":"search_shard1_replica3",
> > "base_url":"http://idx3.oi.dev:8983/solr",
> > "node_name":"idx3.oi.dev:8983_solr",
> > "state":"down"}}},
> > "shard2":{
> > "range":"0-7fffffff",
> > "state":"active",
> > "replicas":{
> > "core_node1":{
> > "core":"search_shard2_replica1",
> > "base_url":"http://idx4.oi.dev:8983/solr",
> > "node_name":"idx4.oi.dev:8983_solr",
> > "state":"down"},
> > "core_node2":{
> > "core":"search_shard2_replica2",
> > "base_url":"http://idx6.oi.dev:8983/solr",
> > "node_name":"idx6.oi.dev:8983_solr",
> > "state":"down"},
> > "core_node4":{
> > "core":"search_shard2_replica3",
> > "base_url":"http://idx1.oi.dev:8983/solr",
> > "node_name":"idx1.oi.dev:8983_solr",
> > "state":"active",
> > "leader":"true"}}}},
> > "router":{"name":"compositeId"},
> > "maxShardsPerNode":"1",
> > "autoAddReplicas":"false"}}
> >
> >
> >
> >
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>