hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12516) Suppress the fsnamesystem lock warning on nn startup
Date Sun, 24 Sep 2017 19:49:00 GMT

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

Ajay Kumar commented on HDFS-12516:
-----------------------------------

[~anu], you are right. I think this is what [~arpitagarwal] suggested initially. Made the
change in patch v3.

> Suppress the fsnamesystem lock warning on nn startup
> ----------------------------------------------------
>
>                 Key: HDFS-12516
>                 URL: https://issues.apache.org/jira/browse/HDFS-12516
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Ajay Kumar
>            Assignee: Ajay Kumar
>         Attachments: HDFS-12516.01.patch, HDFS-12516.02.patch, HDFS-12516.03.patch
>
>
> Whenever FsNameSystemLock is held for more than configured value of {{dfs.namenode.write-lock-reporting-threshold-ms}},
we log stacktrace and an entry in metrics. Loading FSImage from disk will usually cross this
threshold. We can suppress this FsNamesystem lock warning on NameNode startup.
> {code}
> 17/09/20 21:41:39 INFO namenode.FSNamesystem: FSNamesystem write lock held for 7159 ms
via
> java.lang.Thread.getStackTrace(Thread.java:1552)
> org.apache.hadoop.util.StringUtils.getStackTrace(StringUtils.java:945)
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.writeUnlock(FSNamesystem.java:1659)
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1074)
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:703)
> org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:688)
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:752)
> org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:992)
> org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:976)
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1701)
> org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1769)
>         Number of suppressed write-lock reports: 0
>         Longest write-lock held interval: 7159
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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