Skip to content

Commit 79c028e

Browse files
authored
Use DEFAULT_MAX_PERMITS constant in getSharedArenaMaxPermitsSysprop (#15908)
* adjust SharedArenaMaxPermits to RefCountedSharedArena.DEFAULT_MAX_PERMITS * add changes * move change entry to 10.5
1 parent be2af1e commit 79c028e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lucene/CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ Bug Fixes
325325
* GITHUB#15878: Fix existential quantification bug in caller checks
326326
(VectorizationProvider, TestSecrets). (Uwe Schindler)
327327

328+
* GITHUB#15908: Fix MMapDirectory.getSharedArenaMaxPermitsSysprop() to use
329+
RefCountedSharedArena.DEFAULT_MAX_PERMITS instead of a hardcoded value, so that
330+
the default change from GITHUB#15078 takes effect. (Huaixinww)
331+
328332
Other
329333
---------------------
330334
* GITHUB#15586: Document that scoring and ranking may change across major Lucene versions, and that applications requiring stable ranking should explicitly configure Similarity. (Parveen Saini)

lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ private static int checkMaxPermits(int maxPermits) {
482482
}
483483

484484
private static int getSharedArenaMaxPermitsSysprop() {
485-
int ret = 1024; // default value
485+
int ret = RefCountedSharedArena.DEFAULT_MAX_PERMITS;
486486
try {
487487
String str = System.getProperty(SHARED_ARENA_MAX_PERMITS_SYSPROP);
488488
if (str != null) {

0 commit comments

Comments
 (0)