Skip to content

Commit

Permalink
allowed stop to bypass saftey check resolves #697 (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnoble authored and kstaken committed May 2, 2018
1 parent b52384c commit 02275a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cluster/services/cluster/backends/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02275a2

Please sign in to comment.