mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-27 19:20:42 -06:00
reduce wait duration for potential long blocking
This commit is contained in:
parent
6d389da5a9
commit
769426600d
@ -128,7 +128,8 @@ public class ThreadDrivenTokenPool implements TokenPool {
|
|||||||
blocks++;
|
blocks++;
|
||||||
//System.out.println(ANSI_BrightRed + "waiting for " + amt + "/" + activePool + " of max " + maxActivePool + ANSI_Reset);
|
//System.out.println(ANSI_BrightRed + "waiting for " + amt + "/" + activePool + " of max " + maxActivePool + ANSI_Reset);
|
||||||
try {
|
try {
|
||||||
wait(maxActivePool / 1000000, 0);
|
wait(1000);
|
||||||
|
// wait(maxActivePool / 1000000, 0);
|
||||||
} catch (InterruptedException ignored) {
|
} catch (InterruptedException ignored) {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user