Skip to content

Commit e6c8c08

Browse files
Nit
1 parent 199a15b commit e6c8c08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/index/engine/ThreadPoolMergeExecutorService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public void validate(ByteSizeValue value) {}
121121
public void validate(final ByteSizeValue value, final Map<Setting<?>, Object> settings, boolean isPresent) {
122122
if (isPresent) {
123123
if (value.equals(ByteSizeValue.MINUS_ONE)) {
124-
throw new IllegalArgumentException("setting a headroom value to less than 0 is not supported");
124+
throw new IllegalArgumentException("setting a headroom value to less than 0 is not supported, " +
125+
"use [null] value to unset");
125126
}
126127
if (settings.get(USE_THREAD_POOL_MERGE_SCHEDULER_SETTING).equals(Boolean.FALSE)) {
127128
throw new IllegalArgumentException(

0 commit comments

Comments
 (0)