Sumit Agrawal created HDDS-7541:
-----------------------------------

             Summary: FSO recursive delete directory with hierarchy takes much 
time for cleanup
                 Key: HDDS-7541
                 URL: https://issues.apache.org/jira/browse/HDDS-7541
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: OM
            Reporter: Sumit Agrawal
            Assignee: Sumit Agrawal


When level of hierarchy is high, it takes (nrOfLevel*1Minute) time which is 
quiet high for cleanup.

This can be done quickly within number of files range configuration within 
iteration.

 

cleanup log of directory (each iteration with 1 minute):
{code:java}
2022-11-15 20:05:13,854 INFO service.DirectoryDeletingService 
(DirectoryDeletingService.java:call(217)) - Number of dirs deleted: 1, Number 
of sub-files moved: 0 to DeletedTable, Number of sub-dirs moved 1 to 
DeletedDirectoryTable, iteration elapsed: 14ms, totalRunCount: 9
2022-11-15 20:06:13,856 INFO service.DirectoryDeletingService 
(DirectoryDeletingService.java:call(217)) - Number of dirs deleted: 1, Number 
of sub-files moved: 1 to DeletedTable, Number of sub-dirs moved 1 to 
DeletedDirectoryTable, iteration elapsed: 12ms, totalRunCount: 10
2022-11-15 20:07:13,959 INFO service.DirectoryDeletingService 
(DirectoryDeletingService.java:call(217)) - Number of dirs deleted: 1, Number 
of sub-files moved: 0 to DeletedTable, Number of sub-dirs moved 1 to 
DeletedDirectoryTable, iteration elapsed: 17ms, totalRunCount: 11
2022-11-15 20:08:13,972 INFO service.DirectoryDeletingService 
(DirectoryDeletingService.java:call(217)) - Number of dirs deleted: 1, Number 
of sub-files moved: 0 to DeletedTable, Number of sub-dirs moved 0 to 
DeletedDirectoryTable, iteration elapsed: 26ms, totalRunCount: 12 {code}



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

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

Reply via email to