[
https://issues.apache.org/jira/browse/HDFS-3948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457944#comment-13457944
]
Eli Collins commented on HDFS-3948:
-----------------------------------
Here's the full backtrace:
{noformat}
testNamenodeRestart(org.apache.hadoop.hdfs.web.TestWebHDFS) Time elapsed:
70.879 sec <<< FAILURE!
java.lang.AssertionError: There are 1 exception(s):
Exception 0:
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.RemoteException):
bad state: CLOSED
at
org.apache.hadoop.hdfs.server.namenode.FSEditLog.logEdit(FSEditLog.java:357)
at
org.apache.hadoop.hdfs.server.namenode.FSEditLog.logGenerationStamp(FSEditLog.java:777)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.nextGenerationStamp(FSNamesystem.java:4719)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.allocateBlock(FSNamesystem.java:2434)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:2191)
at
org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:471)
at
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:297)
at
org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:44080)
at
org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:453)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:898)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1693)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1689)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1687)
at
org.apache.hadoop.hdfs.web.JsonUtil.toRemoteException(JsonUtil.java:166)
at
org.apache.hadoop.hdfs.web.WebHdfsFileSystem.validateResponse(WebHdfsFileSystem.java:303)
at
org.apache.hadoop.hdfs.web.WebHdfsFileSystem.access$500(WebHdfsFileSystem.java:110)
at
org.apache.hadoop.hdfs.web.WebHdfsFileSystem$1.close(WebHdfsFileSystem.java:704)
at
org.apache.hadoop.hdfs.TestDFSClientRetries$4.run(TestDFSClientRetries.java:844)
at java.lang.Thread.run(Thread.java:662)
at org.junit.Assert.fail(Assert.java:91)
at
org.apache.hadoop.hdfs.TestDFSClientRetries.assertEmpty(TestDFSClientRetries.java:986)
at
org.apache.hadoop.hdfs.TestDFSClientRetries.namenodeRestartTest(TestDFSClientRetries.java:910)
at
org.apache.hadoop.hdfs.web.TestWebHDFS.testNamenodeRestart(TestWebHDFS.java:209)
{noformat}
> TestWebHDFS#testNamenodeRestart is racy
> ----------------------------------------
>
> Key: HDFS-3948
> URL: https://issues.apache.org/jira/browse/HDFS-3948
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha
> Reporter: Eli Collins
>
> After fixing HDFS-3936 I noticed that TestWebHDFS#testNamenodeRestart fails
> when looping it, on my system it takes about 40 runs. WebHdfsFileSystem#close
> is racing with restart and resulting in an add block after the edit log is
> closed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira