[
https://issues.apache.org/jira/browse/SOLR-17824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18010209#comment-18010209
]
ASF subversion and git services commented on SOLR-17824:
--------------------------------------------------------
Commit 368d0b25af63e1d8752ae3177d26a5f3d273d3c9 in solr's branch
refs/heads/branch_9x from David Smiley
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=368d0b25af6 ]
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.
(cherry picked from commit 6bb80bd72d5fa06035d10c157c27476fbb76188f)
> 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]