From b71caaebf030a17050d00255bcefe43dba05e6ab Mon Sep 17 00:00:00 2001 From: Sachin Kale Date: Tue, 10 Jan 2023 22:42:36 +0530 Subject: [PATCH] Reduce number of operations in RemoteFSTranslogTests.testConcurrentWriteViewsAndSnapshot (#5789) Signed-off-by: Sachin Kale --- .../org/opensearch/index/translog/RemoteFSTranslogTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/test/java/org/opensearch/index/translog/RemoteFSTranslogTests.java b/server/src/test/java/org/opensearch/index/translog/RemoteFSTranslogTests.java index 79887a4fe92c2..b016c6a151cce 100644 --- a/server/src/test/java/org/opensearch/index/translog/RemoteFSTranslogTests.java +++ b/server/src/test/java/org/opensearch/index/translog/RemoteFSTranslogTests.java @@ -652,8 +652,8 @@ public void testConcurrentWritesWithVaryingSize() throws Throwable { public void testConcurrentWriteViewsAndSnapshot() throws Throwable { final Thread[] writers = new Thread[randomIntBetween(1, 3)]; final Thread[] readers = new Thread[randomIntBetween(1, 3)]; - final int flushEveryOps = randomIntBetween(5, 100); - final int maxOps = randomIntBetween(200, 1000); + final int flushEveryOps = randomIntBetween(5, 10); + final int maxOps = randomIntBetween(20, 100); final Object signalReaderSomeDataWasIndexed = new Object(); final AtomicLong idGenerator = new AtomicLong(); final CyclicBarrier barrier = new CyclicBarrier(writers.length + readers.length + 1);