Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13466

Add an AutoCloseableLock class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      Introduce an AutoCloseableLock class that is a thin wrapper over RentrantLock. It allows using RentrantLock with try-with-resources syntax.

      The wrapper functions perform no expensive operations in the lock acquire/release path.

      Attachments

        1. HADOOP-13466.001.patch
          5 kB
          Chen Liang
        2. HADOOP-13466.002.patch
          8 kB
          Chen Liang

        Activity

          People

            vagarychen Chen Liang
            vagarychen Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: