HBASE-9324: TestProcedureMember#testMemberCommitException, testSimpleRun & testMemberCommitCommsFailure are flaky on Suse OS

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1517066 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jeffreyz 2013-08-23 21:46:38 +00:00
parent 357fd849bc
commit fe67dccca8
1 changed files with 4 additions and 1 deletions

View File

@ -159,12 +159,15 @@ public class ProcedureMember implements Closeable {
// kick off the subprocedure
Future<Void> future = null;
try {
future = this.pool.submit(subproc);
synchronized (subprocs) {
subprocs.put(procName, subproc);
}
future = this.pool.submit(subproc);
return true;
} catch (RejectedExecutionException e) {
synchronized (subprocs) {
subprocs.remove(procName);
}
// the thread pool is full and we can't run the subprocedure
String msg = "Subprocedure pool is full!";
subproc.cancel(msg, e.getCause());