Skip to content

Commit 822fea9

Browse files
authored
Fix threadpool setting test for system_write (#63706)
This commit fixes the UpdateThreadPoolSettingsTests to be aware of the hard limit on the maximum size of the system_write executor. This executor has a hard limit that matches the write executor, which is the number of allocated processors. Closes #63131 Backport #63700
1 parent fe75bf5 commit 822fea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/threadpool/UpdateThreadPoolSettingsTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void testWriteThreadPoolsMaxSize() throws InterruptedException {
8787
}
8888

8989
private static int getExpectedThreadPoolSize(Settings settings, String name, int size) {
90-
if (name.equals(ThreadPool.Names.WRITE)) {
90+
if (name.equals(ThreadPool.Names.WRITE) || name.equals(Names.SYSTEM_WRITE)) {
9191
return Math.min(size, EsExecutors.allocatedProcessors(settings));
9292
} else {
9393
return size;

0 commit comments

Comments
 (0)