hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-13234) Get random port by new ServerSocket(0).getLocalPort() in ServerSocketUtil#getPort
Date Fri, 03 Jun 2016 04:22:59 GMT
Brahma Reddy Battula created HADOOP-13234:
---------------------------------------------

             Summary: 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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org


Mime
View raw message