Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7396 Revisit synchronization in Namenode
  3. HDFS-3937

The BlockManager should not use the FSN lock

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • namenode
    • None

    Description

      Like HDFS-2206 but for the BM. The BM currently calls into the FSN to acquire it's write lock, it looks like this is only needed for synchronization of it's local structures, in which case it can have it's own RW lock. This helps us further decouple block and namespace management, and also avoids scenarios like HDFS-3936 where the FSN holds the lock and calls into BM which may be blocked trying to acquire the FSN lock.

      Per Todd's comment in HDFS-2206 we should do this as part of revisiting NN locking (HDFS-2184) vs just a local change.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eli Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: