From 02275a2d499d1a20d4ce17a54446143705f68132 Mon Sep 17 00:00:00 2001 From: Jared Noble Date: Wed, 2 May 2018 13:24:10 -0700 Subject: [PATCH] allowed stop to bypass saftey check resolves #697 (#699) --- lib/cluster/services/cluster/backends/native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cluster/services/cluster/backends/native.js b/lib/cluster/services/cluster/backends/native.js index cb49e331792..845950a26e7 100644 --- a/lib/cluster/services/cluster/backends/native.js +++ b/lib/cluster/services/cluster/backends/native.js @@ -578,7 +578,7 @@ module.exports = function module(context, messaging, executionService) { let nodes = _findNodesForExecution(exId, slicerOnly); if (excludeNode) { nodes = nodes.filter(node => node.hostname !== excludeNode); - } else if (nodes.length === 0) { + } else if (messageData.message !== 'cluster:execution:stop' && nodes.length === 0) { // exclude node is only in regards to a shutdown on the cluster_master, which // already receives the shutdown notice so it can be empty, in all other // circumstances if the node list length is zero then reject