[
https://issues.apache.org/jira/browse/HDDS-7147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-7147:
-----------------------------------
Summary: DirectoryDeletingService interval unit mismatch (was:
DirectoryDeletingService doesn't run in the expected interval for FSO)
> DirectoryDeletingService interval unit mismatch
> -----------------------------------------------
>
> 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: [email protected]
For additional commands, e-mail: [email protected]