[Discovery] Improved logging when a join request is not executed because local node is no longer master
This commit is contained in:
parent
7db9e98ee7
commit
8b85d97ea6
|
@ -797,7 +797,11 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
|
|||
|
||||
@Override
|
||||
public void onFailure(String source, Throwable t) {
|
||||
logger.error("unexpected failure during [{}]", t, source);
|
||||
if (t instanceof ClusterService.NoLongerMasterException) {
|
||||
logger.debug("not processing [{}] as we are no longer master", source);
|
||||
} else {
|
||||
logger.error("unexpected failure during [{}]", t, source);
|
||||
}
|
||||
callback.onFailure(t);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue