ppkarwasz opened a new pull request, #21:
URL: https://github.com/apache/logging-flume-rpc/pull/21

   Avro's `NettyServer.close()` shuts down its boss and worker event loops one 
after the other with `shutdownGracefully()`, and each call waits for Netty's 
default quiet period of 2 s. Every test server therefore takes at least 4 s to 
close, and the 10-host load-balancing tests spend over 40 s each just shutting 
down.
   
   The new `RpcTestUtils.newNettyServer()` passes event loop groups that shut 
down with a zero quiet period. `RpcTestUtils.startServer()` and `TestAvroSink` 
use it. Locally, `flume-rpc-avro` goes from 12:17 to 5:46 min:
   
   | Test class | Before | After |
   |---|---|---|
   | `TestLoadBalancingRpcClient` | 240 s | 33 s |
   | `TestAvroSink` | 139 s | 82 s |
   | `TestNettyAvroRpcClient` | 92 s | 28 s |
   | `TestFailoverRpcClient` | 58 s | 18 s |
   | `TestRpcClientFactory` | 26 s | 2 s |
   
   Only test code changes. `TestSpoolDirectorySource` (about 115 s) starts no 
servers, so this does not affect it.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to