Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.3.0
    • Component/s: yarn
    • Labels:
      None

      Description

      As a best practice - Reentrant lock has to be acquired before try clause.
      https://stackoverflow.com/questions/31058681/java-locking-structure-best-pattern

      There are many places where lock is obtained inside try.

          try {
             this.writeLock.lock();
            ....
          } finally {
            this.writeLock.unlock();
          }
      

        Attachments

          Activity

            People

            • Assignee:
              Prabhu Joseph Prabhu Joseph
              Reporter:
              Prabhu Joseph Prabhu Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: