LeaseRenew RPC does not need to grab fsnamesystem write lock
------------------------------------------------------------

                 Key: HDFS-1436
                 URL: https://issues.apache.org/jira/browse/HDFS-1436
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: name-node
    Affects Versions: 0.22.0
            Reporter: Hairong Kuang
            Assignee: Hairong Kuang
             Fix For: 0.22.0


Lease renew RPC changes neither fsdirectory nor blocksMap. It only updates 
lease related data structure. Since all accesses of lease related data 
structures are already synced on leaseManager lock, I do not think the lease 
renew RPC needs to grab the fsnamesystem write lock. This will greatly reduce 
the pressure on NameNode when there are large number of files are open for 
writing in an HDFS cluster.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to