[
https://issues.apache.org/jira/browse/HDFS-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209056#comment-13209056
]
Uma Maheswara Rao G commented on HDFS-2955:
-------------------------------------------
Yes, looks tests started failing due to this. Thanks Hari, for filing the JIRA.
{noformat}
java.lang.Exception: test timed out after 60000 milliseconds
at java.lang.Object.wait(Native Method)
at
org.apache.hadoop.hdfs.DFSOutputStream.waitForAckedSeqno(DFSOutputStream.java:1584)
at
org.apache.hadoop.hdfs.DFSOutputStream.flushInternal(DFSOutputStream.java:1570)
at
org.apache.hadoop.hdfs.DFSOutputStream.close(DFSOutputStream.java:1653)
at
org.apache.hadoop.fs.FSDataOutputStream$PositionCache.close(FSDataOutputStream.java:66)
at
org.apache.hadoop.fs.FSDataOutputStream.close(FSDataOutputStream.java:99)
at org.apache.hadoop.io.IOUtils.cleanup(IOUtils.java:204)
at org.apache.hadoop.io.IOUtils.closeStream(IOUtils.java:221)
at
org.apache.hadoop.hdfs.server.namenode.ha.TestQuotasWithHA.testQuotasTrackedOnStandby(TestQuotasWithHA.java:111)
{noformat}
cause is same:
{noformat}
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:3171)
... 57 more
{noformat}
> HA: IllegalStateException during standby startup in getCurSegmentTxId
> ---------------------------------------------------------------------
>
> Key: HDFS-2955
> URL: https://issues.apache.org/jira/browse/HDFS-2955
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ha, name-node
> Affects Versions: HA branch (HDFS-1623)
> Reporter: Hari Mankude
> Assignee: Hari Mankude
>
> During standby restarts, a new routine getTransactionsSinceLastLogRoll() has
> been introduced for metrics which is calling getCurSegmentTxId().
> checkstate() in getCurSegmentTxId() assumes that log is opened for writing
> and this is not the case in standby.
--
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