Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8FC217241 for ; Sat, 22 Aug 2015 21:22:49 +0000 (UTC) Received: (qmail 46543 invoked by uid 500); 22 Aug 2015 21:22:46 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 46455 invoked by uid 500); 22 Aug 2015 21:22:46 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 46336 invoked by uid 99); 22 Aug 2015 21:22:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Aug 2015 21:22:46 +0000 Date: Sat, 22 Aug 2015 21:22:46 +0000 (UTC) From: "Ted Yu (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-14293) TestStochasticBalancerJmxMetrics intermittently fails due to port conflict MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ted Yu created HBASE-14293: ------------------------------ Summary: TestStochasticBalancerJmxMetrics intermittently fails due to port conflict Key: HBASE-14293 URL: https://issues.apache.org/jira/browse/HBASE-14293 Project: HBase Issue Type: Test Reporter: Ted Yu Assignee: Ted Yu Priority: Minor >From https://builds.apache.org/job/HBase-TRUNK/6748/testReport/junit/org.apache.hadoop.hbase/TestStochasticBalancerJmxMetrics/testJmxMetrics_EnsembleMode/ : {code} 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) {code} 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)