SOLR-11702: Remove noise of exception messages on failed to ping leader

This commit is contained in:
Cao Manh Dat 2018-03-11 07:05:46 +07:00
parent f1f929b15a
commit e926f435d7
1 changed files with 2 additions and 2 deletions

View File

@ -780,11 +780,11 @@ public class RecoveryStrategy implements Runnable, Closeable {
SolrPingResponse resp = httpSolrClient.ping();
return leaderReplica;
} catch (IOException e) {
LOG.info("Failed to connect leader {} on recovery, try again", leaderReplica.getBaseUrl(), 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(), e);
LOG.info("Failed to connect leader {} on recovery, try again", leaderReplica.getBaseUrl());
Thread.sleep(500);
} else {
return leaderReplica;