hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11140) Directory Scanner should log startup message time correctly
Date Tue, 15 Nov 2016 10:49:58 GMT

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

Yiqun Lin commented on HDFS-11140:
----------------------------------

Thanks [~xyao] for the comments.
{quote}
How about removing the starting timestamp as the log4j always has that info at the beginning
of each log entry?
{quote}
Here the time of log4j info is not the real start time of DirectoryScanner. There is an additional
offset time that randoming from 0 to {{scanPeriod}} that will be increased to the start time.

Attach the new patch to fix checkstyle warnings.

> Directory Scanner should log startup message time correctly
> -----------------------------------------------------------
>
>                 Key: HDFS-11140
>                 URL: https://issues.apache.org/jira/browse/HDFS-11140
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.7.1
>            Reporter: Xiao Chen
>            Assignee: Yiqun Lin
>            Priority: Trivial
>              Labels: newbie
>         Attachments: HDFS-11140.001.patch
>
>
> When DirectoryScanner is enabled, one can see the following log:
> {noformat}
> INFO org.apache.hadoop.hdfs.server.datanode.DirectoryScanner: Periodic 
> Directory Tree Verification scan starting at 1479189895562ms with interval of 21600000ms
> {noformat}
> The first is epoch time and should not have 'ms'. Or better yet, we can change it to
a human-readable format.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message