[Discovery] Improved logging when a join request is not executed because local node is no longer master

This commit is contained in:
Boaz Leskes 2014-06-15 23:57:19 +02:00
parent 7db9e98ee7
commit 8b85d97ea6
1 changed files with 5 additions and 1 deletions

View File

@ -797,7 +797,11 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
@Override
public void onFailure(String source, Throwable t) {
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);
}