mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-04 01:49:15 +00:00
don't send leave request when the master node is null
This commit is contained in:
parent
84fa13a5e0
commit
ccdbbef276
@ -147,7 +147,7 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
|
||||
nodesFD.stop();
|
||||
initialStateSent.set(false);
|
||||
if (sendLeaveRequest) {
|
||||
if (!master) {
|
||||
if (!master && latestDiscoNodes.masterNode() != null) {
|
||||
try {
|
||||
membership.sendLeaveRequestBlocking(latestDiscoNodes.masterNode(), localNode, TimeValue.timeValueSeconds(1));
|
||||
} catch (Exception e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user