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

Prettify PipelineAck#toString() for printing to a log

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: None
    • Labels:
      None

      Description

      The current PipelineAck#toString() calls TextFormat#print(), which results in a newline per field in the protobuf. This looks messy when printed to the log (e.g. DFSOutputStream.java:667) and makes grepping messier. A nicer print format would put all of this on one line.

        Attachments

        1. hdfs-3925-1.patch
          1 kB
          Andrew Wang

          Activity

            People

            • Assignee:
              andrew.wang Andrew Wang
              Reporter:
              andrew.wang Andrew Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: