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

Improve FSNamesystem.listCorruptFileBlocks so that it doesn't need to acquire the readLock.

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      FSNamesystem.listCorruptFileBlocks currently needs to take readLock to enumerate the list of corruptFileBlocks. The call will be blocked if NN's writeLock is owned by another thread. It will be useful if FSNamesystem.listCorruptFileBlocks doesn't require readLock for scenarios like JMX.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mingma Ming Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: