From 2eee92726c6ad29d22415c8ac671ef9c695a377a Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 26 Jun 2012 13:02:43 +0200 Subject: [PATCH] support also queue for setting queue size in fixed thread pool --- src/main/java/org/elasticsearch/threadpool/ThreadPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/threadpool/ThreadPool.java b/src/main/java/org/elasticsearch/threadpool/ThreadPool.java index 3b40b180689..0a805611128 100644 --- a/src/main/java/org/elasticsearch/threadpool/ThreadPool.java +++ b/src/main/java/org/elasticsearch/threadpool/ThreadPool.java @@ -230,7 +230,7 @@ public class ThreadPool extends AbstractComponent { return new ExecutorHolder(executor, new Info(name, type, -1, -1, keepAlive, null)); } else if ("fixed".equals(type)) { int size = settings.getAsInt("size", defaultSettings.getAsInt("size", Runtime.getRuntime().availableProcessors() * 5)); - SizeValue capacity = settings.getAsSize("capacity", settings.getAsSize("queue_size", defaultSettings.getAsSize("queue_size", null))); + SizeValue capacity = settings.getAsSize("capacity", settings.getAsSize("queue", settings.getAsSize("queue_size", defaultSettings.getAsSize("queue", defaultSettings.getAsSize("queue_size", null))))); RejectedExecutionHandler rejectedExecutionHandler; String rejectSetting = settings.get("reject_policy", defaultSettings.get("reject_policy", "abort")); if ("abort".equals(rejectSetting)) {