-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove exception wrapping in BatchedRerouteService (#97224)
Today the `BatchedRerouteService` wraps exceptions from the reroute process in an additional `ElasticsearchException`. Most callers do not care about this wrapping, they simply log the exception. The only places that do care are: - `TransportMigrateToDataTiersAction` (only affects the log level) - `TransportClusterUpdateSettingsAction` Both of these places expect to receive an exception matching `isPublishFailureException` on a failure to publish the rerouted state, but this never happens because of the extra wrapping. This commit removes the unnecessary wrapping so that these callers see the exception semantics they expect.
- Loading branch information
1 parent
e35d9e7
commit 69ff7df
Showing
3 changed files
with
109 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 97224 | ||
summary: Remove exception wrapping in `BatchedRerouteService` | ||
area: Allocation | ||
type: bug | ||
issues: [] |
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