hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9210) Fix some misuse of %n in VolumeScanner#printStats
Date Wed, 25 Nov 2015 23:23:11 GMT

    [ https://issues.apache.org/jira/browse/HDFS-9210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15027787#comment-15027787
] 

Andrew Wang commented on HDFS-9210:
-----------------------------------

LGTM +1, though aren't {{lineSeparator}} and {{"%n"}} the same? Formatter javadoc under "Line
Separator" says {{n}} is same as {{System.getProperty("line.separator")}}: http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html#syntax

> Fix some misuse of %n in VolumeScanner#printStats
> -------------------------------------------------
>
>                 Key: HDFS-9210
>                 URL: https://issues.apache.org/jira/browse/HDFS-9210
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode
>    Affects Versions: 2.7.1
>            Reporter: Xiaoyu Yao
>            Assignee: Xiaoyu Yao
>            Priority: Minor
>             Fix For: 2.8.0
>
>         Attachments: HDFS-9210.00.patch, HDFS-9210.01.patch, HDFS-9210.02.patch
>
>
> Found 2 extra "%n" in the VolumeScanner report and lines not well formatted  below. This
JIRA is opened to fix the format issue.
> {code}
> Block scanner information for volume DS-93fb2503-de00-4f98-a8bc-c2bc13b8f0f7 with base
path /hadoop/hdfs/data%nBytes verified in last hour       :                              
                  136882014
> Blocks scanned in current period  :                                                 
       5
> Blocks scanned since restart      :                                                 
       5
> Block pool scans since restart    :                                                 
       0
> Block scan errors since restart   :                                                 
       0
> Hours until next block pool scan  :                                                 
 476.000
> Last block scanned                : BP-1792969149-192.168.70.101-1444150984999:blk_1073742088_1274
> More blocks to scan in period     :                                                 
   false
> %n
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message