[ 
https://issues.apache.org/jira/browse/HDFS-17387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821143#comment-17821143
 ] 

ASF GitHub Bot commented on HDFS-17387:
---------------------------------------

ZanderXu commented on code in PR #6572:
URL: https://github.com/apache/hadoop/pull/6572#discussion_r1503958822


##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/fgl/MeasurableReentrantReadWriteLock.java:
##########


Review Comment:
   Yes, this class is used to tracking performance for locking. 
   
   This class is cloned from the original FSNamesystemLock.class, and just 
modifies some logic related to lock name and some comments.
   
   So that the GlobalLock and FGL can use this class to trace performance with 
different lock name. 
   
   GlobalFSNamesystemLock is using this class to trace performance right now.





> [FGL] Abstract the configurable locking mode
> --------------------------------------------
>
>                 Key: HDFS-17387
>                 URL: https://issues.apache.org/jira/browse/HDFS-17387
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: ZanderXu
>            Assignee: ZanderXu
>            Priority: Major
>              Labels: pull-request-available
>
> Abstract a lock mode to cover the current global lock and the new 
> fine-grained lock(global FS lock and global BM lock).
> End-user can select to use lock mode through configuration.
> The possible lock modes after this patch are as follows:
>  * GLOBAL Lock
>  * FS Lock
>  * BM Lock



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to