Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: