Skip to content

Commit 027a22a

Browse files
nssuresh2007dakrone
authored andcommitted
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
1 parent bd2eae4 commit 027a22a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/src/main/java/org/elasticsearch/rest/action/RestMainAction.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,9 @@ static BytesRestResponse convertMainResponse(MainResponse response, RestRequest
6969
response.toXContent(builder, request);
7070
return new BytesRestResponse(status, builder);
7171
}
72+
73+
@Override
74+
public boolean canTripCircuitBreaker() {
75+
return false;
76+
}
7277
}

0 commit comments

Comments
 (0)