hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Abdelnur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10695) KMSClientProvider should respect a configurable timeout.
Date Tue, 24 Jun 2014 16:26:25 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14042319#comment-14042319
] 

Alejandro Abdelnur commented on HADOOP-10695:
---------------------------------------------

[~yoderme], if you want to get an unused random port, do the following:

{code}
      ServerSocket ss = new ServerSocket(0, 50, InetAddress.getByName("localhost"));
      port = ss.getLocalPort();
      ss.close();
      ...
{code}


> KMSClientProvider should respect a configurable timeout.
> --------------------------------------------------------
>
>                 Key: HADOOP-10695
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10695
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 3.0.0
>            Reporter: Andrew Wang
>            Assignee: Mike Yoder
>         Attachments: HADOOP-10695.patch, HADOOP-10695.patch
>
>
> It'd be good if KMSClientProvider used a timeout, so it doesn't hang forever if the KMServer
is down.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message