Commit cccf48e
[loadbalancer] add timeout to ApertureEagerConnections
# Problem
ApertureEagerConnections object has a semaphore which is shared by all services.
If a service is misconfigured and blocks the semaphore - all other services suffer.
Plus this can lead to OutOfMemory, because the semaphore queue is unbounded.
# Solution
Add a conservative timeout.
JIRA Issues: MEDIASERV-18729
Differential Revision: https://phabricator.twitter.biz/D12494641 parent cfb1844 commit cccf48e
File tree
1 file changed
+7
-1
lines changed- finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/aperture
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
0 commit comments