hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Íñigo Goiri (JIRA) <j...@apache.org>
Subject [jira] [Commented] (HDFS-13232) RBF: ConnectionPool should return first usable connection
Date Wed, 07 Mar 2018 22:48:00 GMT

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

Íñigo Goiri commented on HDFS-13232:
------------------------------------

Added, he should be able to assign himself to JIRAs now.

> RBF: ConnectionPool should return first usable connection
> ---------------------------------------------------------
>
>                 Key: HDFS-13232
>                 URL: https://issues.apache.org/jira/browse/HDFS-13232
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Wei Yan
>            Assignee: Wei Yan
>            Priority: Minor
>
> In current ConnectionPool.getConnection(), it will return the first active connection:
> {code:java}
> for (int i=0; i<size; i++) {
>   int index = (threadIndex + i) % size;
>   conn = tmpConnections.get(index);
>   if (conn != null && !conn.isUsable()) {
>     return conn;
>   }
> }
> {code}
> Here "!conn.isUsable()" should be "conn.isUsable()".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message