Varun Thacker created SOLR-12991:
------------------------------------
Summary: RecoveryStrategy should mention the root cause
Key: SOLR-12991
URL: https://issues.apache.org/jira/browse/SOLR-12991
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 7.5
Reporter: Varun Thacker
Here is a log line which could be more informative to help debug the root cause.
{code:java}
date time INFO (recoveryExecutor-4-thread-6-processing-n:host:port_solr
x:coll_shard1_replica_n203 c:coll s:shard1 r:core_node204) [c:coll s:shard1
r:core_node204 x:coll_shard1_replica_n203] o.a.s.c.RecoveryStrategy Failed to
connect leader https://host:8985/solr on recovery, try again{code}
In these code paths we should make sure the root cause is mentioned. Also these
should be WARNs or ERRORs
{code:java}
catch (IOException e) {
log.info("Failed to connect leader {} on recovery, try again",
leaderReplica.getBaseUrl());
Thread.sleep(500);
} catch (Exception e) {
if (e.getCause() instanceof IOException) {
log.info("Failed to connect leader {} on recovery, try again",
leaderReplica.getBaseUrl());
Thread.sleep(500);
} else {
return leaderReplica;
}
}{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]