transactionsSinceLastLogRoll metric can throw IllegalStateException
-------------------------------------------------------------------
Key: HDFS-2957
URL: https://issues.apache.org/jira/browse/HDFS-2957
Project: Hadoop HDFS
Issue Type: Bug
Affects Versions: 0.24.0
Reporter: Todd Lipcon
Assignee: Aaron T. Myers
12/02/15 15:04:36 ERROR lib.MethodMetric: Error invoking method
getTransactionsSinceLastLogRoll
...
at
org.apache.hadoop.metrics2.MetricsSystem.register(MetricsSystem.java:54)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startCommonServices(FSNamesystem.java:505)
at
org.apache.hadoop.hdfs.server.namenode.NameNode.startCommonServices(NameNode.java:435)
at
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:399)
...
Caused by: java.lang.IllegalStateException: Bad state: OPEN_FOR_READING
at
com.google.common.base.Preconditions.checkState(Preconditions.java:172)
at
org.apache.hadoop.hdfs.server.namenode.FSEditLog.getCurSegmentTxId(FSEditLog.java:417)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getTransactionsSinceLastLogRoll(FSNamesystem.java:3170)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira