-
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-core: FailureAccrualPolicy is mutable and should never be shared
Problem `FailureAccrualPolicy` maintains a mutable state that `FailureAccrualFactory` uses to determine whether or not an endpoint should be marked unavailable. Given that it's mutable, it should never be shared across different endpoint stacks (endpoints) in a single Finagle client. This is why using `Param(p: FailureAccrualPolicy)` may lead to a surprising results when different endpoints interfere with each other. Solution `FaulureAccrualPolicy` should be passed as a function (factory) instead. RB_ID=802953 TBR=true
- Loading branch information
1 parent
60b11df
commit 823c3ed
Showing
8 changed files
with
60 additions
and
132 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
63 changes: 0 additions & 63 deletions
63
finagle-core/src/main/java/com/twitter/finagle/service/exp/FailureAccrualPolicies.java
This file was deleted.
Oops, something went wrong.
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
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