hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-5588) Incorrect values of trash configuration and trash emptier state in namenode log
Date Fri, 24 Jan 2014 08:51:38 GMT

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

Suresh Srinivas updated HDFS-5588:
----------------------------------

      Resolution: Duplicate
    Release Note: This has already been fixed by HDFS-5560
          Status: Resolved  (was: Patch Available)

> Incorrect values of trash configuration and trash emptier state in namenode log
> -------------------------------------------------------------------------------
>
>                 Key: HDFS-5588
>                 URL: https://issues.apache.org/jira/browse/HDFS-5588
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client, namenode
>    Affects Versions: 2.2.0
>            Reporter: Adam Kawa
>         Attachments: HDFS-5588-1.patch
>
>
> Values of trash configuration and trash emptier state in namenode log are displayed in
milliseconds (but it should be seconds). This is very confusing because it makes you feel
that Trash does not remove data or the meaning of configuration settings changed.
> {code}
> // org.apache.hadoop.fs.TrashPolicyDefault
>   @Override
>   public void initialize(Configuration conf, FileSystem fs, Path home) {
>     ...
>     this.deletionInterval = (long)(conf.getFloat(
>         FS_TRASH_INTERVAL_KEY, FS_TRASH_INTERVAL_DEFAULT)
>         * MSECS_PER_MINUTE);
>     this.emptierInterval = (long)(conf.getFloat(
>         FS_TRASH_CHECKPOINT_INTERVAL_KEY, FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT)
>         * MSECS_PER_MINUTE);
>     LOG.info("Namenode trash configuration: Deletion interval = " +
>              this.deletionInterval + " minutes, Emptier interval = " +
>              this.emptierInterval + " minutes.");
>    }
> {code}
> this.deletionInterval and this.emptierInterval are in miliseconds, but the LOG.info tells
that they are in minutes.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message