Closed Garciat closed 4 years ago
Merging #203 into master will increase coverage by
0.47%
. The diff coverage is89.19%
.
@@ Coverage Diff @@
## master #203 +/- ##
============================================
+ Coverage 73.4% 73.87% +0.47%
Complexity 10 10
============================================
Files 87 88 +1
Lines 2767 2801 +34
Branches 348 355 +7
============================================
+ Hits 2031 2069 +38
+ Misses 510 506 -4
Partials 226 226
Impacted Files | Coverage Δ | Complexity Δ | |
---|---|---|---|
...java/com/uber/tchannel/handlers/RequestRouter.java | 76.58% <100%> (+2.26%) |
0 <0> (ø) |
:arrow_down: |
.../src/main/java/com/uber/tchannel/api/TChannel.java | 68.12% <75%> (+0.21%) |
0 <0> (ø) |
:arrow_down: |
...com/uber/tchannel/handlers/LoadControlHandler.java | 89.29% <89.29%> (ø) |
0 <0> (?) |
|
...e/src/main/java/com/uber/tchannel/api/TFuture.java | 65.85% <0%> (+4.88%) |
0% <0%> (ø) |
:arrow_down: |
...n/java/com/uber/tchannel/messages/RawResponse.java | 50% <0%> (+8.7%) |
0% <0%> (ø) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 18b6586...45483d4. Read the comment docs.
While trying to tackle the issue of OOM errors from having unbounded outstanding requests in asynchronous servers, I came across this SO answer and this presentation.
Each commit in this branch addresses a particular slide in the presentation:
Add load control handler
- slide 33 (this is the main change)Set child WRITE_BUFFER_WATER_MARK
- slide 11Use voidPromise on unused future
- slide 8Send responses inside the event loop
- slide 28Write to context to continue pipeline
- slide 29PingPongServerBenchmark
No changes
Changes (load control = off)
Changes (load control = on)