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

In FSNamesystem, hasReadLock() returns false if the current thread holds the write lock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 3.0.0-alpha1
    • Fix Version/s: 2.3.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This bug was discovered by [~vinayrpet] in this comment.

      In FSNamesystem, there are hasReadLock() and hasReadOrWriteLock(). However, when a thread holds the write lock, the read lock is not required for reading data. So hasReadLock() and hasReadOrWriteLock() actually are the same.

        Attachments

        1. HDFS-5372.patch
          5 kB
          Vinayakumar B
        2. HDFS-5372-Branch-2.patch
          4 kB
          Uma Maheswara Rao G

          Activity

            People

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              szetszwo Tsz-wo Sze
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: