Skip to content

Commit 5727a1f

Browse files
mark-vieiraalbertzaharovits
authored andcommitted
Fix failure in ScalingThreadPoolTests after addition of merge scheduler (#125245)
1 parent 6eed252 commit 5727a1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ private int expectedSize(final String threadPoolName, final int numberOfProcesso
119119
sizes.put(ThreadPool.Names.SNAPSHOT_META, n -> Math.min(n * 3, 50));
120120
sizes.put(ThreadPool.Names.FETCH_SHARD_STARTED, ThreadPool::twiceAllocatedProcessors);
121121
sizes.put(ThreadPool.Names.FETCH_SHARD_STORE, ThreadPool::twiceAllocatedProcessors);
122+
sizes.put(ThreadPool.Names.MERGE, Function.identity());
122123
return sizes.get(threadPoolName).apply(numberOfProcessors);
123124
}
124125

0 commit comments

Comments
 (0)