Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14293

TestStochasticBalancerJmxMetrics intermittently fails due to port conflict

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      From https://builds.apache.org/job/HBase-TRUNK/6748/testReport/junit/org.apache.hadoop.hbase/TestStochasticBalancerJmxMetrics/testJmxMetrics_EnsembleMode/ :

      2015-08-22 20:46:07,939 ERROR [M:0;asf900:59022] coprocessor.CoprocessorHost(518): The coprocessor org.apache.hadoop.hbase.JMXListener threw java.rmi.server.ExportException: Port already in use: 61120; nested exception is: 
      	java.net.BindException: Address already in use
      java.rmi.server.ExportException: Port already in use: 61120; nested exception is: 
      	java.net.BindException: Address already in use
      	at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:329)
      	at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:237)
      	at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
      ...
      2015-08-22 20:49:41,755 DEBUG [main] hbase.TestStochasticBalancerJmxMetrics(93): Encountered exception when starting cluster. Trying port 61122
      java.lang.IllegalStateException: A mini-cluster is already running
      	at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:981)
      	at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:872)
      	at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:866)
      	at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:810)
      	at org.apache.hadoop.hbase.TestStochasticBalancerJmxMetrics.setupBeforeClass(TestStochasticBalancerJmxMetrics.java:89)
      

      When port conflict is detected, we try the next port.
      However, HTU#miniClusterRunning is true by this moment, leading to the second exception shown above.

      Attachments

        1. 14293-v3.txt
          3 kB
          Ted Yu
        2. 14293-v2.txt
          3 kB
          Ted Yu
        3. 14293-v1.txt
          2 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: