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

Akira AJISAKA commented on HADOOP-12822:
----------------------------------------

bq. I changed two log level. That was you meant here?
Yes. Thank you for creating the patch. One comment: Now we are gradually 
migrating from LOG4J to SLF4J. Would you make the code as follows to avoid 
unnecessary call of {{size()}} and {{e.toString()}} when the loglevel is WARN 
or higher?
{code}
public class Interns {
  private static final Logger LOG = LoggerFactory.getLogger(Interns.class);
{code}
{code}
          LOG.info("Metrics intern cache overflow at {} for {}", size(), e);
{code}

> Change "Metrics intern cache overflow" log level from WARN to INFO
> ------------------------------------------------------------------
>
>                 Key: HADOOP-12822
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12822
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: metrics
>            Reporter: Akira AJISAKA
>            Assignee: Andras Bokor
>            Priority: Minor
>              Labels: newbie
>         Attachments: HADOOP-12822.patch
>
>
> Interns.java outputs "Metrics intern cache over flow" warn log for metrics 
> info/tag when the cache reaches the hard-coded limit and the oldest cache is 
> discarded for the first time. I'm thinking this log level can be changed to 
> info because
> * there is no problem when the oldest cache is removed. if the metrics 
> info/tag is not in the cache, simply create it.
> * we cannot configure the maximum size of the cache, so there is no way to 
> stop the warn log.



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

Reply via email to