mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
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;
|
||||
} else if (exp.getCause() instanceof NotMasterException) {
|
||||
logger.debug("[master] pinging a master {} that is not the master", masterNode);
|
||||
notifyMasterFailure(masterToPing, "no longer master");
|
||||
notifyMasterFailure(masterToPing, "not master");
|
||||
return;
|
||||
} 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user