Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1164

TestReplicationPolicy doesn't use port 0 for the NameNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.3
    • 0.13.0
    • test
    • None

    Description

      The TestReplicationPolicy test doesn't use mini-dfs and specifies a fixed port, so it can crash with address in use:

      java.net.BindException: Address already in use
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
      at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:184)
      at org.apache.hadoop.ipc.Server.<init>(Server.java:622)
      at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:323)
      at org.apache.hadoop.ipc.RPC.getServer(RPC.java:293)
      at org.apache.hadoop.dfs.NameNode.init(NameNode.java:181)
      at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:207)
      at org.apache.hadoop.dfs.TestReplicationPolicy.<clinit>(TestReplicationPolicy.java:36)

      Attachments

        1. h1164.patch
          0.5 kB
          Owen O'Malley

        Activity

          People

            omalley Owen O'Malley
            omalley Owen O'Malley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: