Fix bug for BENCH thread pool size == 1

On small hardware, the BENCH thread pool can be set to size 1. This is
problematic as it means that while a benchmark is active, there are no
threads available to service administrative tasks such as listing and
aborting. This change fixes that by executing list and abort operations
on the GENERIC thread pool.

Closes #6174
This commit is contained in:
Andrew Selden 2014-05-14 10:40:39 -07:00
parent 2c1c5c163f
commit fc0bed5236
1 changed files with 4 additions and 2 deletions

View File

@ -286,7 +286,8 @@ public class BenchmarkService extends AbstractLifecycleComponent<BenchmarkServic
@Override @Override
public String executor() { public String executor() {
return ThreadPool.Names.BENCH; // Perform management tasks on GENERIC so as not to block pending acquisition of a thread from BENCH.
return ThreadPool.Names.GENERIC;
} }
} }
@ -308,7 +309,8 @@ public class BenchmarkService extends AbstractLifecycleComponent<BenchmarkServic
@Override @Override
public String executor() { public String executor() {
return ThreadPool.Names.BENCH; // Perform management tasks on GENERIC so as not to block pending acquisition of a thread from BENCH.
return ThreadPool.Names.GENERIC;
} }
} }