[
https://issues.apache.org/jira/browse/HDFS-12324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16138825#comment-16138825
]
Xiaoyu Yao commented on HDFS-12324:
-----------------------------------
New stack after HDFS-12216, where {{MiniOzoneCluster#restartDataNode}} will
call {{MiniDFSCluster#waitActive()}} and eventually timeout. Before HDFS-12216,
the test passed because we don't check wait for cluster active for
restartDataNode.
Since the each individual test in TestQueryNode will create its own Mini
cluster, I think we can fix the test by removing the two restartDatanode calls.
cc: [~anu]/[~msingh].
{code}
Java.lang.Exception: test timed out after 10000 milliseconds
at java.lang.Thread.sleep(Native Method)
at
org.apache.hadoop.hdfs.MiniDFSCluster.waitActive(MiniDFSCluster.java:2572)
at
org.apache.hadoop.hdfs.MiniDFSCluster.waitActive(MiniDFSCluster.java:2612)
at
org.apache.hadoop.ozone.MiniOzoneCluster.restartDataNode(MiniOzoneCluster.java:170)
at
org.apache.hadoop.ozone.MiniOzoneCluster.restartDataNode(MiniOzoneCluster.java:149)
at
org.apache.hadoop.ozone.scm.node.TestQueryNode.testStaleNodesCount(TestQueryNode.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
2017-08-23 11:15:43,287 [Thread-412] WARN hdfs.MiniDFSCluster
(MiniDFSCluster.java:waitActive(2618)) - Tried waitActive() 2 time(s) and
failed, giving up. java.net.ConnectException: Call From
hw11717.local/192.168.2.135 to localhost:56981 failed on connection exception:
java.net.ConnectException: Connection refused; For more details see:
http://wiki.apache.org/hadoop/ConnectionRefused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:815)
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:746)
at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1494)
at org.apache.hadoop.ipc.Client.call(Client.java:1436)
at org.apache.hadoop.ipc.Client.call(Client.java:1346)
at
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:228)
at
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:116)
at com.sun.proxy.$Proxy79.getDatanodeReport(Unknown Source)
at
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getDatanodeReport(ClientNamenodeProtocolTranslatorPB.java:719)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:422)
at
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMethod(RetryInvocationHandler.java:165)
at
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(RetryInvocationHandler.java:157)
at
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnce(RetryInvocationHandler.java:95)
at
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:359)
at com.sun.proxy.$Proxy82.getDatanodeReport(Unknown Source)
at org.apache.hadoop.hdfs.DFSClient.datanodeReport(DFSClient.java:1968)
at
org.apache.hadoop.hdfs.MiniDFSCluster.waitActive(MiniDFSCluster.java:2569)
at
org.apache.hadoop.hdfs.MiniDFSCluster.waitActive(MiniDFSCluster.java:2612)
at
org.apache.hadoop.ozone.MiniOzoneCluster.restartDataNode(MiniOzoneCluster.java:170)
at
org.apache.hadoop.ozone.MiniOzoneCluster.restartDataNode(MiniOzoneCluster.java:149)
at
org.apache.hadoop.ozone.scm.node.TestQueryNode.testStaleNodesCount(TestQueryNode.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
Caused by: java.net.ConnectException: Connection refused
{code}
> Ozone: TestQueryNode#testStaleNodesCount is failing.
> ----------------------------------------------------
>
> Key: HDFS-12324
> URL: https://issues.apache.org/jira/browse/HDFS-12324
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: HDFS-7240
> Reporter: Xiaoyu Yao
> Assignee: Xiaoyu Yao
>
> The test failed consistently with NPE. This ticket is opened to fix it.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]