[
https://issues.apache.org/jira/browse/HDDS-7764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wei-Chiu Chuang resolved HDDS-7764.
-----------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
> Potential discrepancy of key creation time may cause premature open key clean
> up
> --------------------------------------------------------------------------------
>
> Key: HDDS-7764
> URL: https://issues.apache.org/jira/browse/HDDS-7764
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone Manager
> Reporter: Wei-Chiu Chuang
> Assignee: Tsz-wo Sze
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> When a key is created by OMKeyCreateRequest, its creation time is set by
> Time.now(), which is local time.
>
> When OpenKeyCleanupService checks for expired open keys
> (OmMetadataManagerImpl.getExpiredOpenKeys()) it uses Instant.now() as the
> current time, which is UTC time.
>
> OpenKeyCleanupService may therefore pick up open keys that are not actually
> expired due to time zone difference.
>
> This is not currently a critical issue as with the current implemetation,
> open keys expires after 7 days, so the time difference isn't that critical.
> However, once we implement HDFS-like lease recovery and use the expiration
> time comparable to HDFS (1 minute/1 hour) then it is a big problem.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]