-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-thrift[mux]: fix Thrift[Mux].client treats undeclared server …
…exceptions as successes = Problem = Thrift[Mux] clients treat undeclared (in IDL) server exceptions as successes: - In wire stats they are reported as successes rather than failures, which leads to incorrect high SR (logical/* stats is correct, though) - Failure accrual service does not disable a faulty host - Client's custom failure accrual policy is not used at all = Solution = Make `ThriftCodec.decodeResponse` return `Throw(ex)` rather than throwing the exception. = Result = - Wire success rate is correct - Failure accrual service disables a faulty host - Client's failure accrual policy is used for all exceptions, not just for declared JIRA Issues: GRAPH-15029 Differential Revision: https://phabricator.twitter.biz/D698272
- Loading branch information
Anton Ivanov
authored and
jenkins
committed
Jul 14, 2021
1 parent
9a418a5
commit 3bba41c
Showing
3 changed files
with
131 additions
and
21 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
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