diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java index ea79887273..2219dece9a 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java @@ -86,6 +86,7 @@ public class Client implements AutoCloseable { public static final Logger LOG = LoggerFactory.getLogger(Client.class); + private static final int STOP_SLEEP_TIME_MS = 10; /** A counter for generating call IDs. */ private static final AtomicInteger callIdCounter = new AtomicInteger(); @@ -1353,7 +1354,7 @@ public void stop() { // wait until all connections are closed while (!connections.isEmpty()) { try { - Thread.sleep(100); + Thread.sleep(STOP_SLEEP_TIME_MS); } catch (InterruptedException e) { } }