You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "wenbingshen (via GitHub)" <gi...@apache.org> on 2023/05/10 03:42:24 UTC
[GitHub] [bookkeeper] wenbingshen commented on pull request #3951: [improve] Support client max idle connections minutes
wenbingshen commented on PR #3951:
URL: https://github.com/apache/bookkeeper/pull/3951#issuecomment-1541303788
> I have left some comments. I am not sure if this is adding cost on the hot paths
IMO, the code below is the core hot path, active connections will get hits in channels most of the time:
```java
public PerChannelBookieClientPool lookupClient(BookieId addr) {
PerChannelBookieClientPool clientPool = channels.getIfPresent(addr);
return clientPool;
}
```
A new connection will only be created when the bookie node is expanded or restarted.
> can you please also add tests ?
I will add tests.
--
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: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org