Skip to content

Commit 18fb3d9

Browse files
authored
Remove trappy timeouts from ClearInferenceEndpointCacheAction.Request (#136796)
This is an internal fire-and-forget action, no sense in imposing any timeout on the master-node action. It also doesn't care about acknowledgements so it may as well use a zero ack timeout.
1 parent df159ce commit 18fb3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/registry/ClearInferenceEndpointCacheAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected ClusterBlockException checkBlock(ClearInferenceEndpointCacheAction.Req
134134

135135
public static class Request extends AcknowledgedRequest<ClearInferenceEndpointCacheAction.Request> {
136136
protected Request() {
137-
super(TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT, DEFAULT_ACK_TIMEOUT);
137+
super(INFINITE_MASTER_NODE_TIMEOUT, TimeValue.ZERO);
138138
}
139139

140140
protected Request(StreamInput in) throws IOException {

0 commit comments

Comments
 (0)