Skip to content

Commit

Permalink
Fix threadpool setting test for system_write (#63706)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jaymode committed Oct 14, 2020
1 parent fe75bf5 commit 822fea9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void testWriteThreadPoolsMaxSize() throws InterruptedException {
}

private static int getExpectedThreadPoolSize(Settings settings, String name, int size) {
if (name.equals(ThreadPool.Names.WRITE)) {
if (name.equals(ThreadPool.Names.WRITE) || name.equals(Names.SYSTEM_WRITE)) {
return Math.min(size, EsExecutors.allocatedProcessors(settings));
} else {
return size;
Expand Down

0 comments on commit 822fea9

Please sign in to comment.