You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/07/23 03:25:00 UTC
[jira] [Updated] (SOLR-17824) RecoveryStrategy.pingLeader could NPE when there's no leader
[ https://issues.apache.org/jira/browse/SOLR-17824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SOLR-17824:
----------------------------------
Labels: pull-request-available (was: )
> 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: 10m
> 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-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org