Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8856

Make LeaseManager#countPath O(1)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.2
    • 2.8.0, 3.0.0-alpha1
    • namenode
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. HDFS-8856.04.patch
          9 kB
          Arpit Agarwal
        2. HDFS-8856.03.patch
          8 kB
          Arpit Agarwal
        3. HDFS-8856.02.patch
          8 kB
          Arpit Agarwal
        4. HDFS-8856.01.patch
          10 kB
          Arpit Agarwal

        Activity

          People

            arp Arpit Agarwal
            arp Arpit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: