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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0, 3.0.0-alpha1
    • 2.3.0
    • namenode
    • None
    • 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

            vinayakumarb Vinayakumar B
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: