Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-core: make ClientBuilder RetryingFilter a Stack.Module and in…
…sert it down the stack Problem: In cases where Union nodes appear in a NameTree, we'd like ClientBuilder-configured retries to hit the same destination cluster rather than being distributed across the Union. We are introducing Union nodes in place of multiple client stacks (with external distribution across stacks), so making retries hit the same cluster retains the existing behavior, stats, etc. Solution: Make the RetryingFilter in ClientBuilder a Stack.Module and insert it just above RequeueingFilter (a separate change puts RequeueingFilter below BindingFactory). Along the way, add Stack.insertBefore, convert the other filters in ClientBuilder to Stack.Modules, and add the "retries" stats scope whether or not retries are configured (this is the only place non-retry/requeue requests are counted). RB_ID=589694
- Loading branch information
Jake Donham
authored and
jenkins
committed
Mar 9, 2015
1 parent
11f6e11
commit 09b7987
Showing
5 changed files
with
155 additions
and
28 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
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