reduce the number of threads used by testNotBlockingUnsafeStackTraces

It times out some times.

Fixes #24936
This commit is contained in:
Boaz Leskes 2017-06-02 19:05:53 +02:00
parent 4077600035
commit aa5b11687d
1 changed files with 2 additions and 2 deletions

View File

@ -126,9 +126,9 @@ public class LongGCDisruptionTests extends ESTestCase {
final AtomicBoolean stop = new AtomicBoolean(); final AtomicBoolean stop = new AtomicBoolean();
final LockedExecutor lockedExecutor = new LockedExecutor(); final LockedExecutor lockedExecutor = new LockedExecutor();
final AtomicLong ops = new AtomicLong(); final AtomicLong ops = new AtomicLong();
final Thread[] threads = new Thread[10]; final Thread[] threads = new Thread[5];
try { try {
for (int i = 0; i < 10; i++) { for (int i = 0; i < threads.length; i++) {
threads[i] = new Thread(() -> { threads[i] = new Thread(() -> {
for (int iter = 0; stop.get() == false; iter++) { for (int iter = 0; stop.get() == false; iter++) {
if (iter % 2 == 0) { if (iter % 2 == 0) {