[ 
https://issues.apache.org/jira/browse/HDFS-8856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arpit Agarwal updated HDFS-8856:
--------------------------------
          Resolution: Fixed
        Hadoop Flags: Reviewed
       Fix Version/s: 2.8.0
    Target Version/s:   (was: 2.8.0)
              Status: Resolved  (was: Patch Available)

The checkstyle issue is unrelated to the patch.

Thank you for the reviews all. Committed for 2.8.0.

> 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
>             Fix For: 2.8.0
>
>         Attachments: HDFS-8856.01.patch, HDFS-8856.02.patch, 
> HDFS-8856.03.patch, HDFS-8856.04.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)

Reply via email to