Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-17502

Adjust the log format of the printStatistics() in FSEditLog.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • namanode

    Description

      The current log format of printStatistics() is:

      2024-04-27 21:15:05,429 [main] INFO  namenode.FSEditLog (FSEditLog.java:printStatistics(801)) - Number of transactions: 2 Total time for transactions(ms): 2 Number of transactions batched in Syncs: 0 Number of syncs: 3 SyncTimes(ms): 1 0

      There are no separators between different keys, making it difficult to read. The modified format is:

      2024-04-27 21:15:05,429 [main] INFO  namenode.FSEditLog (FSEditLog.java:printStatistics(801)) - Number of transactions: 2, Total time for transactions(ms): 2, Number of transactions batched in Syncs: 0, Number of syncs: 3, SyncTimes(ms): 1 0 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yu.wang Yu Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: