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

Vinayakumar B commented on HADOOP-11119:
----------------------------------------

{code}      if (emptierInterval > deletionInterval || emptierInterval == 0) {
        LOG.info("The configured checkpoint interval is " +
                 (emptierInterval / MSECS_PER_MINUTE) + " minutes." +
                 " Using an interval of " +
                 (deletionInterval / MSECS_PER_MINUTE) +
                 " minutes that is used for deletion instead");
        this.emptierInterval = deletionInterval;
      }{code}
[~aw], I think you are referring to this log. Yeah, since by default 
{{emptierInterval}} is 0, and admin might mainly care about 
{{deletionInterval}}, just to enable trash, it prints two log messages.
But I think this is Okay as this is using {{deletionInterval}} if 
{{emptierInterval}} is more than {{deletionInterval}} or not configured.

Same two log messages will be present at NameNode side without patch too. Below 
log is from one of my machine, without patch.
{noformat}2015-05-28 18:38:36,042 INFO org.apache.hadoop.fs.TrashPolicyDefault: 
Namenode trash configuration: Deletion interval = 10 minutes, Emptier interval 
= 0 minutes.
2015-05-28 18:38:36,043 INFO org.apache.hadoop.fs.TrashPolicyDefault: The 
configured checkpoint interval is 0 minutes. Using an interval of 10 minutes 
that is used for deletion instead{noformat}

> TrashPolicyDefault init pushes messages to command line
> -------------------------------------------------------
>
>                 Key: HADOOP-11119
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11119
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Allen Wittenauer
>            Assignee: Brahma Reddy Battula
>            Priority: Minor
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-11119-002.patch, HADOOP-11119.patch
>
>
> During a fresh install of trunk:
> {code}
> aw-mbp-work:hadoop-3.0.0-SNAPSHOT aw$ bin/hadoop fs -put /etc/hosts /tmp
> aw-mbp-work:hadoop-3.0.0-SNAPSHOT aw$ bin/hadoop fs -rm /tmp/hosts
> 14/09/23 13:05:46 INFO fs.TrashPolicyDefault: Namenode trash configuration: 
> Deletion interval = 0 minutes, Emptier interval = 0 minutes.
> Deleted /tmp/hosts
> {code}
> The info message for the Namenode trash configuration isn't very useful.



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

Reply via email to