Cluster Shutdown API: On full/_all shutdown, shutdown only data/master nodes, not client nodes, closes #697.

This commit is contained in:
kimchy 2011-02-17 03:33:34 +02:00
parent 245d241a5c
commit 9ca8165f3b

View File

@ -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 {