[ https://issues.apache.org/jira/browse/HDFS-17410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17847610#comment-17847610 ]
ASF GitHub Bot commented on HDFS-17410: --------------------------------------- hfutatzhanghb commented on code in PR #6634: URL: https://github.com/apache/hadoop/pull/6634#discussion_r1605921502 ########## hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java: ########## @@ -3654,14 +3654,15 @@ void setQuota(String src, long nsQuota, long ssQuota, StorageType type) checkSuperuserPrivilege(operationName, src); } try { - writeLock(); + // Need to compute the curren space usage + writeLock(FSNamesystemLockMode.GLOBAL); Review Comment: @ZanderXu Got it, Thanks sir. > [FGL] Client RPCs that changes file attributes supports fine-grained lock > ------------------------------------------------------------------------- > > Key: HDFS-17410 > URL: https://issues.apache.org/jira/browse/HDFS-17410 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: ZanderXu > Assignee: ZanderXu > Priority: Major > Labels: pull-request-available > > There are some client RPCs are used to change file attributes. > This ticket is used to make these RPCs supporting fine-grained lock. > * setReplication > * getStoragePolicies > * setStoragePolicy > * unsetStoragePolicy > * satisfyStoragePolicy > * getStoragePolicy > * setPermission > * setOwner > * setTimes > * concat > * truncate > * setQuota > * getQuotaUsage > * modifyAclEntries > * removeAclEntries > * removeDefaultAcl > * removeAcl > * setAcl > * getAclStatus > * getEZForPath > * getEnclosingRoot > * listEncryptionZones > * reencryptEncryptionZone > * listReencryptionStatus > * setXAttr > * getXAttrs > * listXAttrs > * removeXAttr -- 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