[
https://issues.apache.org/jira/browse/HDFS-13230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16390539#comment-16390539
]
Chao Sun commented on HDFS-13230:
---------------------------------
Yes, I was going to complete that. The approach I was thinking is to initialize
the pool with a positive {{minSize}}, make at least half of them active, and
then try to do cleanup. However, I can't make more than one connection active
because of HDFS-13232. I've synced with Ekanth and he will add the test in that
patch.
> RBF: ConnectionManager's cleanup task will compare each pool's own active
> conns with its total conns
> ----------------------------------------------------------------------------------------------------
>
> Key: HDFS-13230
> URL: https://issues.apache.org/jira/browse/HDFS-13230
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Wei Yan
> Assignee: Chao Sun
> Priority: Minor
> Attachments: HDFS-13230.000.patch
>
>
> In the cleanup task:
> {code:java}
> long timeSinceLastActive = Time.now() - pool.getLastActiveTime();
> int total = pool.getNumConnections();
> int active = getNumActiveConnections();
> if (timeSinceLastActive > connectionCleanupPeriodMs ||
> {code}
> the 3rd line should be pool.getNumActiveConnections()
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]