better reason logged when not master
This commit is contained in:
parent
afc99ac42c
commit
7f6f001d15
|
@ -310,7 +310,7 @@ public class MasterFaultDetection extends AbstractComponent {
|
||||||
return;
|
return;
|
||||||
} else if (exp.getCause() instanceof NotMasterException) {
|
} else if (exp.getCause() instanceof NotMasterException) {
|
||||||
logger.debug("[master] pinging a master {} that is not the master", masterNode);
|
logger.debug("[master] pinging a master {} that is not the master", masterNode);
|
||||||
notifyMasterFailure(masterToPing, "no longer master");
|
notifyMasterFailure(masterToPing, "not master");
|
||||||
return;
|
return;
|
||||||
} else if (exp.getCause() instanceof NodeDoesNotExistOnMasterException) {
|
} else if (exp.getCause() instanceof NodeDoesNotExistOnMasterException) {
|
||||||
logger.debug("[master] pinging a master {} but we do not exists on it, act as if its master failure", masterNode);
|
logger.debug("[master] pinging a master {} but we do not exists on it, act as if its master failure", masterNode);
|
||||||
|
|
Loading…
Reference in New Issue