Skip to content

Commit 54d6642

Browse files
committed
revert search timeout, switch cluster event timeout to 429
1 parent 23be30b commit 54d6642

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/ProcessClusterEventTimeoutException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public ProcessClusterEventTimeoutException(StreamInput in) throws IOException {
2828

2929
@Override
3030
public RestStatus status() {
31-
return RestStatus.SERVICE_UNAVAILABLE;
31+
return RestStatus.TOO_MANY_REQUESTS;
3232
}
3333
}

server/src/main/java/org/elasticsearch/search/query/SearchTimeoutException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public SearchTimeoutException(StreamInput in) throws IOException {
3131

3232
@Override
3333
public RestStatus status() {
34-
return RestStatus.TOO_MANY_REQUESTS;
34+
return RestStatus.GATEWAY_TIMEOUT;
3535
}
3636
}

0 commit comments

Comments
 (0)