From ac7d85efb2fdf14542a0840c939a308618cc8985 Mon Sep 17 00:00:00 2001 From: Ming Ma Date: Mon, 28 Sep 2015 18:12:51 -0700 Subject: [PATCH] HADOOP-12440. TestRPC#testRPCServerShutdown did not produce the desired thread states before shutting down. (Xiao Chen via mingma) (cherry picked from commit 5c3b663bf95551d1cf36a2a39849e0676893fa1d) --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../src/test/java/org/apache/hadoop/ipc/TestRPC.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 51a23b8675e..2c0f70854e1 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -590,6 +590,9 @@ Release 2.8.0 - UNRELEASED HADOOP-11918. Listing an empty s3a root directory throws FileNotFound. (Lei (Eddy) Xu via cnauroth) + HADOOP-12440. TestRPC#testRPCServerShutdown did not produce the desired + thread states before shutting down. (Xiao Chen via mingma) + OPTIMIZATIONS HADOOP-12051. ProtobufRpcEngine.invoke() should use Exception.toString() diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPC.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPC.java index f85e6a6e9bc..75f46959329 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPC.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPC.java @@ -1056,8 +1056,8 @@ public class TestRPC { })); } while (server.getCallQueueLen() != 1 - && countThreads(CallQueueManager.class.getName()) != 1 - && countThreads(TestProtocol.class.getName()) != 1) { + || countThreads(CallQueueManager.class.getName()) != 1 + || countThreads(TestImpl.class.getName()) != 1) { Thread.sleep(100); } } finally {