Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 65AEC200BA6 for ; Mon, 3 Oct 2016 19:59:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 647AE160AE5; Mon, 3 Oct 2016 17:59:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A8254160ACD for ; Mon, 3 Oct 2016 19:59:23 +0200 (CEST) Received: (qmail 36244 invoked by uid 500); 3 Oct 2016 17:59:22 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 36040 invoked by uid 99); 3 Oct 2016 17:59:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 17:59:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E88312C2A6B for ; Mon, 3 Oct 2016 17:59:21 +0000 (UTC) Date: Mon, 3 Oct 2016 17:59:21 +0000 (UTC) From: "Xiaoyu Yao (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13234) Get random port by new ServerSocket(0).getLocalPort() in ServerSocketUtil#getPort MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 03 Oct 2016 17:59:24 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15542988#comment-15542988 ] Xiaoyu Yao commented on HADOOP-13234: ------------------------------------- I've seen a recent instance of Jenkins failure [here|https://builds.apache.org/job/PreCommit-HDFS-Build/16970/testReport/org.apache.hadoop.hdfs/TestDFSShell/testMoveWithTargetPortEmpty/] as shown below, [~brahmareddy], can you confirm if the proposal here will fix the issue? {code} Tests run: 48, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 63.928 sec <<< FAILURE! - in org.apache.hadoop.hdfs.TestDFSShell testMoveWithTargetPortEmpty(org.apache.hadoop.hdfs.TestDFSShell) Time elapsed: 9.026 sec <<< ERROR! java.io.IOException: Port is already in use; giving up after 10 times. at org.apache.hadoop.net.ServerSocketUtil.waitForPort(ServerSocketUtil.java:98) at org.apache.hadoop.hdfs.TestDFSShell.testMoveWithTargetPortEmpty(TestDFSShell.java:809) {code} > Get random port by new ServerSocket(0).getLocalPort() in ServerSocketUtil#getPort > --------------------------------------------------------------------------------- > > Key: HADOOP-13234 > URL: https://issues.apache.org/jira/browse/HADOOP-13234 > Project: Hadoop Common > Issue Type: Bug > Reporter: Brahma Reddy Battula > Assignee: Brahma Reddy Battula > > As per [~iwasakims] comment from [here|https://issues.apache.org/jira/browse/HDFS-10367?focusedCommentId=15275604&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15275604] > we can get available random port by {{new ServerSocket(0).getLocalPort()}} and it's more portable. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org