mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Cluster Shutdown API: On full/_all shutdown, shutdown only data/master nodes, not client nodes, closes #697.
This commit is contained in:
parent
245d241a5c
commit
9ca8165f3b
@ -99,7 +99,8 @@ public class TransportNodesShutdownAction extends TransportMasterNodeOperationAc
|
||||
Set<DiscoveryNode> nodes = Sets.newHashSet();
|
||||
if (Actions.isAllNodes(request.nodesIds)) {
|
||||
logger.info("[cluster_shutdown]: requested, shutting down in [{}]", request.delay);
|
||||
nodes.addAll(state.nodes().nodes().values());
|
||||
nodes.addAll(state.nodes().dataNodes().values());
|
||||
nodes.addAll(state.nodes().masterNodes().values());
|
||||
Thread t = new Thread(new Runnable() {
|
||||
@Override public void run() {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user