diff options
author | HÃ¥kon Hallingstad <hakon@verizonmedia.com> | 2021-06-10 15:42:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 15:42:19 +0200 |
commit | 74b63ba2f717977aae313c3a3bae7fb6f66129ef (patch) | |
tree | f187aca6c659fe56a08e6cf74bd927eefb84184c | |
parent | ab262aac0a4f4a0138ed80a260882587c90d8419 (diff) | |
parent | 4f7b0820f14ca07ec51f7c5f030a6345193e100b (diff) |
Merge pull request #18200 from vespa-engine/hmusum/only-suspend-active-nodes-when-removing-container
Only suspend active nodes when removing container
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java index df3f075e8d9..05c765c9d78 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java @@ -1,4 +1,4 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.node.admin.nodeagent; import com.yahoo.config.provision.ApplicationId; @@ -357,7 +357,7 @@ public class NodeAgentImpl implements NodeAgent { } try { - if (context.node().state() != NodeState.dirty) { + if (context.node().state() == NodeState.active) { suspend(context); } stopServices(context); |