hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8856) Make LeaseManager#countPath O(1)
Date Thu, 06 Aug 2015 00:37:05 GMT

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

Yi Liu commented on HDFS-8856:
------------------------------

{quote}
Looks risky, the lock ensures consistent state for each INodeFile.
{quote}

Arpit, sorry, I mean to put following in the {{try .. finally}} closure,  ideally it will
not throw exception in real case, but from the implementation, it contains.
{code}
numUCBlocks = leaseManager.getNumUnderConstructionBlocks();
{code}

> Make LeaseManager#countPath O(1)
> --------------------------------
>
>                 Key: HDFS-8856
>                 URL: https://issues.apache.org/jira/browse/HDFS-8856
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.7.2
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>         Attachments: HDFS-8856.01.patch, HDFS-8856.02.patch, HDFS-8856.03.patch
>
>
> {{LeaseManager#countPath}} loops over all existing lease holders to compute the pending
lease count. We can just track the pending leased files so it runs in constant time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message