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

David Smiley resolved SOLR-17824.
---------------------------------
    Fix Version/s: 9.9
       Resolution: Fixed

> RecoveryStrategy.pingLeader could NPE when there's no leader
> ------------------------------------------------------------
>
>                 Key: SOLR-17824
>                 URL: https://issues.apache.org/jira/browse/SOLR-17824
>             Project: Solr
>          Issue Type: New Feature
>          Components: SolrCloud
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 9.9
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> I found this by looking at a test failure, briefly looked at the stack trace, 
> which seems to be straight-forward
> [https://github.com/apache/solr/actions/runs/15980088952/job/45073441889?pr=3409]
> {noformat}
> ERROR (recoveryExecutor-262-thread-1-processing-127.0.0.1:46161_solr 
> collection1_shard1_replica_n3 collection1 shard1 core_node4) 
> [n:127.0.0.1:46161_solr c:collection1 s:shard1 r:core_node4 
> x:collection1_shard1_replica_n3 t:] o.a.s.c.RecoveryStrategy Error while 
> trying to recover. core=collection1_shard1_replica_n3
>   2>           => java.lang.NullPointerException: Cannot invoke 
> "org.apache.solr.common.cloud.Replica.getCoreUrl()" because "leaderReplica" 
> is null
>   2>  at 
> org.apache.solr.cloud.RecoveryStrategy.pingLeader(RecoveryStrategy.java:811)
>   2> java.lang.NullPointerException: Cannot invoke 
> "org.apache.solr.common.cloud.Replica.getCoreUrl()" because "leaderReplica" 
> is null
>   2>  at 
> org.apache.solr.cloud.RecoveryStrategy.pingLeader(RecoveryStrategy.java:811) 
> ~[main/:?]
>   2>  at 
> org.apache.solr.cloud.RecoveryStrategy.doSyncOrReplicateRecovery(RecoveryStrategy.java:607)
>  [main/:?]
>   2>  at 
> org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:347) 
> [main/:?]
>   2>  at 
> org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:323) 
> [main/:?]
> {noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to