Open
Description
QUESTION
I am confused in this part of code. I add another metric to monitor the latency of complete entry pendingResponse. I simulate a little big entry throughput, make the journalSyncData config to false. Then you can see that not only bc.flush(), entry.run() and flushPendingResponse also need to consume some time.
This code is done at a single journal critical thread. Why we not move the complete response in another thread? Such as netty iothread or CommonPool
bookkeeper/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Journal.java
Lines 1088 to 1116 in 2b5b992
The new metric is added at here: