You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Shuyan Zhang (Jira)" <ji...@apache.org> on 2024/04/02 02:43:00 UTC

[jira] [Resolved] (HDFS-17408) Reduce the number of quota calculations in FSDirRenameOp

     [ https://issues.apache.org/jira/browse/HDFS-17408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shuyan Zhang resolved HDFS-17408.
---------------------------------
       Fix Version/s: 3.5.0
        Hadoop Flags: Reviewed
    Target Version/s: 3.5.0
          Resolution: Fixed

> Reduce the number of quota calculations in FSDirRenameOp
> --------------------------------------------------------
>
>                 Key: HDFS-17408
>                 URL: https://issues.apache.org/jira/browse/HDFS-17408
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: lei w
>            Assignee: lei w
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.5.0
>
>
> During the execution of the rename operation, we first calculate the quota for the source INode using verifyQuotaForRename, and at the same time, we calculate the quota for the target INode. Subsequently, in RenameOperation#removeSrc, RenameOperation#removeSrc4OldRename, and RenameOperation#addSourceToDestination, the quota for the source directory is calculated again. In exceptional cases, RenameOperation#restoreDst and RenameOperation#restoreSource will also perform quota calculations for the source and target directories. In fact, many of the quota calculations are redundant and unnecessary, so we should optimize them away.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org