From 1a87534c20e7fa4484b782247a6bb71b6f52f365 Mon Sep 17 00:00:00 2001 From: Bukhtawar Khan Date: Mon, 2 Aug 2021 22:45:42 +0530 Subject: [PATCH] Prevent /_cat/master from getting tripped by the CB (#1036) _cat/master is a fundamental API to know the master instance in the cluster. Given RestClusterState is exempted from tripping already, doesn't make sense for RestMasterAction to trip Signed-off-by: Bukhtawar Khan bukhtawa@amazon.com --- .../org/opensearch/rest/action/cat/RestMasterAction.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/main/java/org/opensearch/rest/action/cat/RestMasterAction.java b/server/src/main/java/org/opensearch/rest/action/cat/RestMasterAction.java index 722d69a53ae..4ecb87b4529 100644 --- a/server/src/main/java/org/opensearch/rest/action/cat/RestMasterAction.java +++ b/server/src/main/java/org/opensearch/rest/action/cat/RestMasterAction.java @@ -79,6 +79,11 @@ public class RestMasterAction extends AbstractCatAction { }); } + @Override + public boolean canTripCircuitBreaker() { + return false; + } + @Override protected Table getTableWithHeader(final RestRequest request) { Table table = new Table();