Skip to content

Commit 807ccde

Browse files
jasonstackdriftx
authored andcommitted
CNDB-13724: reduce num of test keys in LongVectorTest to avoid jenkins timeout (#1831)
### What is the issue #13724 ### What does this PR fix and why was it fixed reduce num of test keys and less flushes. Reduce the chances of hitting "too many open files"
1 parent ef692a2 commit 807ccde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/burn/org/apache/cassandra/index/sai/LongVectorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class LongVectorTest extends SAITester
3939
{
4040
private static final Logger logger = org.slf4j.LoggerFactory.getLogger(LongVectorTest.class);
4141

42+
int numKeys = 100_000;
4243
int dimension = 16; // getRandom().nextIntBetween(128, 768);
4344

4445
KeySet keysInserted = new KeySet();
@@ -64,7 +65,7 @@ public void testConcurrentOps(Op op) throws ExecutionException, InterruptedExcep
6465
AtomicInteger counter = new AtomicInteger();
6566
long start = System.currentTimeMillis();
6667
var fjp = new ForkJoinPool(threadCount);
67-
var keys = IntStream.range(0, 10_000_000).boxed().collect(Collectors.toList());
68+
var keys = IntStream.range(0, numKeys).boxed().collect(Collectors.toList());
6869
Collections.shuffle(keys);
6970
var task = fjp.submit(() -> keys.stream().parallel().forEach(i ->
7071
{

0 commit comments

Comments
 (0)