Skip to content

Commit 521ebfa

Browse files
Revert fail-fast disconnect strategy for _resolve/cluster (#124241) (#124368)
* Revert fail-fast disconnect strategy for `_resolve/cluster` This was the first solution for the long wait times that user could potentially see when invoking this API. However, we reverted this change in favour of the new timeout parameter. Unfortunately, the change in disconnect strategy targeted more broader versions than the timeout parameter PR (which contained the revert). This PR fixes this discrepancy. * Update docs/changelog/124241.yaml
1 parent c14ccdb commit 521ebfa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/changelog/124241.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124241
2+
summary: Revert fail-fast disconnect strategy for `_resolve/cluster`
3+
area: Search
4+
type: bug
5+
issues: []

server/src/main/java/org/elasticsearch/action/admin/indices/resolve/TransportResolveClusterAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected void doExecuteForked(Task task, ResolveClusterActionRequest request, A
140140
RemoteClusterClient remoteClusterClient = remoteClusterService.getRemoteClusterClient(
141141
clusterAlias,
142142
searchCoordinationExecutor,
143-
RemoteClusterService.DisconnectedStrategy.FAIL_IF_DISCONNECTED
143+
RemoteClusterService.DisconnectedStrategy.RECONNECT_IF_DISCONNECTED
144144
);
145145
var remoteRequest = new ResolveClusterActionRequest(originalIndices.indices(), request.indicesOptions());
146146
// allow cancellation requests to propagate to remote clusters

0 commit comments

Comments
 (0)