gaozhangmin commented on code in PR #3600:
URL: https://github.com/apache/bookkeeper/pull/3600#discussion_r1012452221
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PacketProcessorBase.java:
##########
@@ -85,7 +85,7 @@ protected void sendResponse(int rc, Object response,
OpStatsLogger statsLogger)
final long writeNanos = MathUtils.nowInNano();
final long timeOut =
requestProcessor.getWaitTimeoutOnBackpressureMillis();
- if (timeOut >= 0 && !channel.isWritable()) {
+ if (timeOut > 0 && !channel.isWritable()) {
Review Comment:
Is it ok when timeout is 0 and blacklistedChannels = Optional.empty() ?
```
if (waitTimeoutOnBackpressureMillis > 0) {
blacklistedChannels = Optional.of(CacheBuilder.newBuilder()
.expireAfterWrite(waitTimeoutOnBackpressureMillis,
TimeUnit.MILLISECONDS)
.build());
} else {
blacklistedChannels = Optional.empty();
}
```
--
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]