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

Prettify PipelineAck#toString() for printing to a log

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.3-alpha
    • 2.0.3-alpha
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment