[jira] [Commented] (SOLR-8953) CDCR leader detector uses core name instead of core node name

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (SOLR-8953) CDCR leader detector uses core name instead of core node name

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-8953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16089587#comment-16089587 ]

Amrit Sarkar commented on SOLR-8953:
------------------------------------

Just skimming,

{code}
CdcrLeaderStateManager.this.setAmILeader(props.get("core").equals(core.getName()));
{code}
The core name is in format: {{collection_shardX_replicaY}}, {{core node name}} is saved in ZK state info for that particular collection but SolrCore doesn't have any node name field or a mapping. Not sure what to replace {{core.getName())}} to equate if we utilise the core node name.

> CDCR leader detector uses core name instead of core node name
> -------------------------------------------------------------
>
>                 Key: SOLR-8953
>                 URL: https://issues.apache.org/jira/browse/SOLR-8953
>             Project: Solr
>          Issue Type: Bug
>          Components: CDCR, SolrCloud
>    Affects Versions: 6.0
>            Reporter: Shalin Shekhar Mangar
>             Fix For: 6.2, 7.0
>
>
> CdcrLeaderStateManager should use core node name instead of core name to determine if current node is the leader otherwise when all replicas have the same name (e.g. "collection1") then it will cause cdcr processes to start on every replica.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...