Whitelisting / from Circuit Breaker Exception (#32325) (#32666)

When Circuit Breaker has tripped, certain diagnostic requests like
"_cluster/health" succeed where as request to / fails with
503 Service Unavailable. This behavior is observed because of this
commit f32b700 where certain API paths are whitelisted from
Circuit Breaking exception, but / is not whitelisted.
Added / to circuit breaker whitelist so that it can be used for
diagnostic purposes
This commit is contained in:
Suresh N S 2018-08-08 19:54:53 +05:30 committed by Lee Hinman
parent 7d641ba69b
commit 7fdf898518
1 changed files with 5 additions and 0 deletions

View File

@ -67,4 +67,9 @@ public class RestMainAction extends BaseRestHandler {
response.toXContent(builder, request);
return new BytesRestResponse(RestStatus.OK, builder);
}
@Override
public boolean canTripCircuitBreaker() {
return false;
}
}