Skip to content

Commit 41df480

Browse files
committed
Fix bwc types
1 parent 134cd02 commit 41df480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/threadpool/ThreadPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public static ThreadPoolType bwcType(String threadPoolName) {
192192
case Names.GENERIC:
193193
return SCALING;
194194
default:
195-
throw new IllegalArgumentException("no bwc type for " + threadPoolName);
195+
return THREAD_POOL_TYPES.get(threadPoolName);
196196
}
197197
}
198198
}

0 commit comments

Comments
 (0)