From 10754b08736f521a9c5f680bfd89f3f51ee1794a Mon Sep 17 00:00:00 2001 From: kimchy Date: Fri, 14 May 2010 10:28:18 +0300 Subject: [PATCH] better safeguard for concurrent restart requests --- .../cluster/node/restart/TransportNodesRestartAction.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/node/restart/TransportNodesRestartAction.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/node/restart/TransportNodesRestartAction.java index db0a8d1b40d..44915fe605e 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/node/restart/TransportNodesRestartAction.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/node/restart/TransportNodesRestartAction.java @@ -38,6 +38,7 @@ import org.elasticsearch.util.settings.Settings; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReferenceArray; import static org.elasticsearch.util.TimeValue.*; @@ -52,7 +53,7 @@ public class TransportNodesRestartAction extends TransportNodesOperationAction