HADOOP-12440. TestRPC#testRPCServerShutdown did not produce the desired thread states before shutting down. (Xiao Chen via mingma)

(cherry picked from commit 5c3b663bf9)
This commit is contained in:
Ming Ma 2015-09-28 18:12:51 -07:00
parent 22f2501476
commit ac7d85efb2
2 changed files with 5 additions and 2 deletions

View File

@ -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()

View File

@ -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 {