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

renewLease should not hold fsn write lock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha, 3.0.0-alpha1
    • 2.3.0
    • namenode
    • None
    • Reviewed

    Description

      Lease renewals unnecessarily hold the write lock which reduces throughput. Currently the fsn lock doubles as an "operational lock" to prevent state transitions. If the lease manager is thread-safe then a read lock is sufficient.

      Attachments

        1. HDFS-5681.patch
          0.8 kB
          Daryn Sharp

        Issue Links

          Activity

            People

              daryn Daryn Sharp
              daryn Daryn Sharp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: