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
This commit is contained in:
Bukhtawar Khan 2021-08-02 22:45:42 +05:30 committed by GitHub
parent b7cf1fae41
commit 1a87534c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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();