[ 
https://issues.apache.org/jira/browse/SOLR-17694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SOLR-17694:
----------------------------------
    Labels: pull-request-available  (was: )

> LeaderElector not able to parse node ID correctly when it has a leading dash
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-17694
>                 URL: https://issues.apache.org/jira/browse/SOLR-17694
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Patrick
>            Priority: Trivial
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This issue was 
> [reported|https://lists.apache.org/thread/0pwxw1rzdffmbxctdzv2rmplzgwt6lpl] 
> on [email protected].
> There could be time (e.g.: ZOOKEEPER-4904) when the node ID contains a 
> leading dash
> {noformat}
> -5188057493699159958-1.1.1.15:8983_solr-n_0000192189
> {noformat}
> instead of just
> {noformat}
> 5188057493699159958-1.1.1.15:8983_solr-n_0000192189
> {noformat}
> In such case, LeaderElector.getNodeName returns 
> *5188057493699159958-1.1.1.15:8983_solr* instead of just 
> {*}1.1.1.15:8983_solr{*}.
> The problem is that the regex LeaderElector.NODE_NAME was not designed to 
> handle the leading dash. LeaderElector.LEADER_SEQ and 
> LeaderElector.SESSION_ID seem to have the same problem.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to