mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
reduce wait duration for potential long blocking
This commit is contained in:
@@ -128,7 +128,8 @@ public class ThreadDrivenTokenPool implements TokenPool {
|
||||
blocks++;
|
||||
//System.out.println(ANSI_BrightRed + "waiting for " + amt + "/" + activePool + " of max " + maxActivePool + ANSI_Reset);
|
||||
try {
|
||||
wait(maxActivePool / 1000000, 0);
|
||||
wait(1000);
|
||||
// wait(maxActivePool / 1000000, 0);
|
||||
} catch (InterruptedException ignored) {
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
|
||||
Reference in New Issue
Block a user