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

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

{quote}
BTW, you forgot branch-2?
{quote}
Committed to branch-2 too. Thanks [~ywskycn] for the reminder... completely 
forgot about it.

{quote}
BTW: I think the commit message is wrong: it should be HDFS-13230, not 
HDFS-13232 
{quote}
I messed up with the tabs while copying... let me see if I can amend the 
message somewhat easily.
OK... I checked and this takes sorcery and it looks very risky, I'm going to 
leave it as is.
If anybody is able to do it without issues, please feel free.

> 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
>             Fix For: 3.1.0, 2.10.0, 2.9.1, 3.0.2, 3.2.0
>
>         Attachments: HDFS-13230.000.patch, HDFS-13230.001.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]

Reply via email to