frankxieke commented on a change in pull request #11555:
URL: https://github.com/apache/pulsar/pull/11555#discussion_r685845386



##########
File path: 
tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/impl/BlockAwareSegmentInputStreamImpl.java
##########
@@ -113,9 +123,12 @@ private int readEntries() throws IOException {
 
     private List<ByteBuf> readNextEntriesFromLedger(long start, long 
maxNumberEntries) throws IOException {
         long end = Math.min(start + maxNumberEntries - 1, 
ledger.getLastAddConfirmed());
+        long startTime = System.nanoTime();
         try (LedgerEntries ledgerEntriesOnce = ledger.readAsync(start, 
end).get()) {
-            log.debug("read ledger entries. start: {}, end: {}", start, end);
-
+            log.debug("read ledger entries. start: {}, end: {} cost {}", 
start, end, TimeUnit.NANOSECONDS.toMicros(System.nanoTime() - startTime));

Review comment:
       ok




-- 
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