You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2022/08/19 06:39:00 UTC
[jira] [Assigned] (HDDS-7147) DirectoryDeletingService doesn't run in the expected interval for FSO
[ https://issues.apache.org/jira/browse/HDDS-7147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Doroszlai reassigned HDDS-7147:
--------------------------------------
Assignee: Aswin Shakil Balasubramanian
> DirectoryDeletingService doesn't run in the expected interval for FSO
> ---------------------------------------------------------------------
>
> Key: HDDS-7147
> URL: https://issues.apache.org/jira/browse/HDDS-7147
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Aswin Shakil Balasubramanian
> Assignee: Aswin Shakil Balasubramanian
> Priority: Major
> Labels: pull-request-available
>
> {{DirectoryDeletingService}} is supposed to run every 60s by default for FSO buckets. Due to a wrong conversion, Instead of 60s it runs every 60000s~=16hours.
> {code:java}
> if (dirDeletingService == null) {
> long dirDeleteInterval = configuration.getTimeDuration(
> OZONE_DIR_DELETING_SERVICE_INTERVAL,
> OZONE_DIR_DELETING_SERVICE_INTERVAL_DEFAULT,
> TimeUnit.MILLISECONDS); ---> 60s converted to 60000
> long serviceTimeout = configuration.getTimeDuration(
> OZONE_BLOCK_DELETING_SERVICE_TIMEOUT,
> OZONE_BLOCK_DELETING_SERVICE_TIMEOUT_DEFAULT,
> TimeUnit.MILLISECONDS);
> dirDeletingService = new DirectoryDeletingService(dirDeleteInterval,
> TimeUnit.SECONDS, serviceTimeout, ozoneManager, configuration); ---> which is passed to the service in seconds.
> dirDeletingService.start();
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org