reduce the number of threads used by testNotBlockingUnsafeStackTraces
It times out some times.
Fixes
@@ -126,9 +126,9 @@ public class LongGCDisruptionTests extends ESTestCase {
final AtomicBoolean stop = new AtomicBoolean();
final LockedExecutor lockedExecutor = new LockedExecutor();
final AtomicLong ops = new AtomicLong();
- final Thread[] threads = new Thread[10];
+ final Thread[] threads = new Thread[5];
try {
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < threads.length; i++) {
threads[i] = new Thread(() -> {
for (int iter = 0; stop.get() == false; iter++) {
if (iter % 2 == 0) {
