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

ASF subversion and git services commented on SOLR-17824:
--------------------------------------------------------

Commit 6bb80bd72d5fa06035d10c157c27476fbb76188f in solr's branch 
refs/heads/main from David Smiley
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=6bb80bd72d5 ]

SOLR-17824: RecoveryStrategy.pingLeader could NPE when there's no leader. 
(#3414)

RecoveryStrategy.pingLeader could NPE when there's no shard leader.
Should be continuing its retry loop.

> 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
>          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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to