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


##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java:
##########
@@ -871,7 +876,10 @@ static FSNamesystem loadFromDisk(Configuration conf) 
throws IOException {
     this.contextFieldSeparator =
         conf.get(HADOOP_CALLER_CONTEXT_SEPARATOR_KEY,
             HADOOP_CALLER_CONTEXT_SEPARATOR_DEFAULT);
-    fsLock = new FSNamesystemLock(conf, detailedLockHoldTimeMetrics);
+    Class<? extends FSNamesystemLock> lockKlass = conf.getClass(
+        DFS_NAMENODE_LOCK_MODEL_PROVIDER_KEY, 
DFS_NAMENODE_LOCK_MODEL_PROVIDER_DEFAULT,
+        FSNamesystemLock.class);
+    fsLock = createLock(lockKlass, conf, detailedLockHoldTimeMetrics);

Review Comment:
   Yes, `GlobalFSNamesystemLock` should be the default class. 
   
   But in order to find dead locks for the other PRs via UT, I just change this 
value to FGL first.
   
   After we complete all sub-tasks of this milestone, I will change the default 
value to GlobalFSNamesystemLock.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to