You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2017/12/20 20:33:34 UTC

[GitHub] sijie commented on a change in pull request #896: ISSUE #895: print entrylog metadata

sijie commented on a change in pull request #896: ISSUE #895: print entrylog metadata
URL: https://github.com/apache/bookkeeper/pull/896#discussion_r158128815
 
 

 ##########
 File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieShell.java
 ##########
 @@ -2682,6 +2742,16 @@ protected void readLedgerIndexEntries(long ledgerId) throws IOException {
         }
     }
 
+    protected void printEntryLogMetadata(long logId) throws IOException {
+        LOG.info("Print entryLogMetadata of entrylog " + logId + " (" + Long.toHexString(logId) + ".log)");
+        initEntryLogger();
+        EntryLogMetadata entryLogMetadata = entryLogger.getEntryLogMetadata(logId);
+        entryLogMetadata.getLedgersMap().forEach((ledgerId, size) -> {
+            LOG.info("--------- Lid=" + ledgerIdFormatter.formatLedgerId(ledgerId) + ", TotalSizeOfEntriesOfLedger="
 
 Review comment:
   use {}

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services