duongkame commented on code in PR #3844:
URL: https://github.com/apache/ozone/pull/3844#discussion_r1010014775
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/DirectoryDeletingService.java:
##########
@@ -125,73 +133,96 @@ public int getPriority() {
@Override
public BackgroundTaskResult call() throws Exception {
if (shouldRun()) {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Running DirectoryDeletingService");
+ }
runCount.incrementAndGet();
- long count = pathLimitPerTask;
+ int dirNum = 0;
+ int subDirNum = 0;
+ int subFileNum = 0;
+ long remainNum = pathLimitPerTask;
+ List<PurgePathRequest> purgePathRequestList = new ArrayList<>();
+
+ Table.KeyValue<String, OmKeyInfo> pendingDeletedDirInfo;
try {
+ TableIterator<String, ? extends KeyValue<String, OmKeyInfo>>
Review Comment:
This introduces a TableIterator leak, which is fixed by this PR.
https://github.com/apache/ozone/pull/3922
Please help review it. @JacksonYao287
--
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]