Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle failure to get remote client in unfollow (#71928)
We remove the retention leases from the leader cluster after processing the cluster state update in the unfollow action, but today we assume that we're still connected to the leader cluster when doing so. If the leader cluster has been removed then `Client#getRemoteClusterClient` throws an exception, which means the listener is never notified of the failure. This commit addresses this by catching the exception, logging a warning, and routing the exception back to the client. Closes #71885
- Loading branch information
1 parent
c4019b8
commit f9ab475
Showing
2 changed files
with
41 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters