public static final String DN_CLIENTTRACE_FORMAT =
"src: %s" + // src IP
", dest: %s" + // dst IP
", bytes: %s" + // byte count
", op: %s" + // operation
", cliID: %s" + // DFSClient id
", offset: %s" + // offset
", srvID: %s" + // DatanodeRegistration
", blockid: %s" + // block id
", duration: %s"; // duration time
The time unit of the duration is nanosecond, but it is not documented.
"duration(ns): %s" seems fine.
HI Akira Ajisaka, I think this is also the issues of the time format in HDFS, like HDFS-11140. Would you also have a look for that? Thanks in advance.
Attaching the patch Akira Ajisaka ,please review
+1, I confirmed the format of this again , it's nanosecond here. Thanks Jagadesh Kiran N for contributing the patch.
This message was automatically generated.
Committed to trunk and branch-2 branches. Thanks Akira Ajisaka for reporting this; thanks Jagadesh Kiran N for providing a patch; thanks Yiqun Lin for review.
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10950 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10950/)
HDFS-11211. Add a time unit to the DataNode client trace format. (liuml07: rev 43cb1678cc000b1fbf8b813ee14ecef19b86a55c)
Thanks Mingliang Liu for commiting the same , thanks Akira Ajisaka for reporting the same & thanks Yiqun Lin for reviewing the same