Skip to content

Commit 12ae764

Browse files
authored
Merge pull request #4369 from evolvedbinary/hotfix/lucene-concurrency-test-deadlock
Limit the number of hardware threads to a max of 16 in some tests
2 parents a51c417 + fdad19e commit 12ae764

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exist-core/src/test/java/org/exist/collections/ConcurrencyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class ConcurrencyTest {
5353
@ClassRule
5454
public static final ExistXmldbEmbeddedServer existEmbeddedServer = new ExistXmldbEmbeddedServer(false, true, true);
5555

56-
private static int CONCURRENT_THREADS = Runtime.getRuntime().availableProcessors() * 3;
56+
private static int CONCURRENT_THREADS = Math.min(16, Runtime.getRuntime().availableProcessors() * 3);
5757
private static final int DOC_COUNT = CONCURRENT_THREADS * 10;
5858

5959
private static final int QUERY_COUNT = 20;

extensions/indexes/lucene/src/test/java/org/exist/indexing/lucene/ConcurrencyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class ConcurrencyTest {
6464
@ClassRule
6565
public static final ExistXmldbEmbeddedServer existEmbeddedServer = new ExistXmldbEmbeddedServer(false, true, true);
6666

67-
private static int CONCURRENT_THREADS = Runtime.getRuntime().availableProcessors() * 3;
67+
private static int CONCURRENT_THREADS = Math.min(16, Runtime.getRuntime().availableProcessors() * 3);
6868

6969
private static Collection test;
7070

0 commit comments

Comments
 (0)