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:
parent
357fd849bc
commit
fe67dccca8
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue