hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Yiqun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10371) MiniDFSCluster#restartDataNode does not always stop DN before start DN
Date Fri, 06 May 2016 01:37:12 GMT

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

Lin Yiqun commented on HDFS-10371:
----------------------------------

I suggest that we should change the param {{expireOnNN}} from false to true in these two {{restartDataNode}}.
So the dn will be stopped and restart.
{code}
  /*
   * Restart a particular datanode, use newly assigned port
   */
  public boolean restartDataNode(int i) throws IOException {
    return restartDataNode(i, false);
  }

  /*
   * Restart a particular datanode, on the same port if keepPort is true
   */
  public synchronized boolean restartDataNode(int i, boolean keepPort)
      throws IOException {
    return restartDataNode(i, keepPort, false);
  }
{code}

> MiniDFSCluster#restartDataNode does not always stop DN before start DN
> ----------------------------------------------------------------------
>
>                 Key: HDFS-10371
>                 URL: https://issues.apache.org/jira/browse/HDFS-10371
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: test
>            Reporter: Xiaoyu Yao
>
> This could cause intermittent port binding problem if the keep the same port option is
chosen as evident in the recent [Jenkins|https://builds.apache.org/job/PreCommit-HDFS-Build/15366/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_91.txt]
> {code}
> Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 53.772 sec <<<
FAILURE! - in org.apache.hadoop.hdfs.TestDecommissionWithStriped
> testDecommissionWithURBlockForSameBlockGroup(org.apache.hadoop.hdfs.TestDecommissionWithStriped)
 Time elapsed: 6.946 sec  <<< ERROR!
> java.net.BindException: Problem binding to [localhost:52957] java.net.BindException:
Address already in use; For more details see:  http://wiki.apache.org/hadoop/BindException
> 	at sun.nio.ch.Net.bind0(Native Method)
> 	at sun.nio.ch.Net.bind(Net.java:433)
> 	at sun.nio.ch.Net.bind(Net.java:425)
> 	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
> 	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> 	at org.apache.hadoop.ipc.Server.bind(Server.java:530)
> 	at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:793)
> 	at org.apache.hadoop.ipc.Server.<init>(Server.java:2592)
> 	at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:958)
> 	at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:563)
> 	at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:538)
> 	at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:800)
> 	at org.apache.hadoop.hdfs.server.datanode.DataNode.initIpcServer(DataNode.java:932)
> 	at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1297)
> 	at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:479)
> 	at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2584)
> 	at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2472)
> 	at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2519)
> 	at org.apache.hadoop.hdfs.MiniDFSCluster.restartDataNode(MiniDFSCluster.java:2242)
> 	at org.apache.hadoop.hdfs.TestDecommissionWithStriped.testDecommissionWithURBlockForSameBlockGroup(TestDecommissionWithStriped.java:254)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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