[ 
https://issues.apache.org/jira/browse/HDFS-9210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaoyu Yao updated HDFS-9210:
-----------------------------
    Attachment: HDFS-9210.02.patch

Thanks [~templedf] for the review! 
Attached a patch using System.LineSeparator().

> 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)

Reply via email to