From 43323c354115617b6f04eeb32b568a8092b9cab3 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 3 Nov 2015 07:40:49 -0500 Subject: [PATCH] Fix bug in cat thread pool This commit fixes a bug in cat thread pool. This bug resulted from a refactoring of the handling of thread pool types. To get the previously displayed thread pool type from the ThreadPoolType object, ThreadPoolType#getType needs to be called. --- .../org/elasticsearch/rest/action/cat/RestThreadPoolAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/rest/action/cat/RestThreadPoolAction.java b/core/src/main/java/org/elasticsearch/rest/action/cat/RestThreadPoolAction.java index 2ad9defe2a7..fa2e662c738 100644 --- a/core/src/main/java/org/elasticsearch/rest/action/cat/RestThreadPoolAction.java +++ b/core/src/main/java/org/elasticsearch/rest/action/cat/RestThreadPoolAction.java @@ -288,7 +288,7 @@ public class RestThreadPoolAction extends AbstractCatAction { } } - table.addCell(poolInfo == null ? null : poolInfo.getThreadPoolType()); + table.addCell(poolInfo == null ? null : poolInfo.getThreadPoolType().getType()); table.addCell(poolStats == null ? null : poolStats.getActive()); table.addCell(poolStats == null ? null : poolStats.getThreads()); table.addCell(poolStats == null ? null : poolStats.getQueue());