HDFS-15627. Log delete audits before collecting blocks.

(cherry picked from commit 740a2c4635)
This commit is contained in:
Kihwal Lee 2020-10-16 11:17:34 -05:00
parent 3274fd139d
commit 7e4572e56a
1 changed files with 1 additions and 1 deletions

View File

@ -3111,10 +3111,10 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
writeUnlock(operationName); writeUnlock(operationName);
} }
getEditLog().logSync(); getEditLog().logSync();
logAuditEvent(true, operationName, src);
if (toRemovedBlocks != null) { if (toRemovedBlocks != null) {
removeBlocks(toRemovedBlocks); // Incremental deletion of blocks removeBlocks(toRemovedBlocks); // Incremental deletion of blocks
} }
logAuditEvent(true, operationName, src);
return ret; return ret;
} }