[ 
https://issues.apache.org/jira/browse/HDDS-7911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rishabh Patel reassigned HDDS-7911:
-----------------------------------

    Assignee: Rishabh Patel  (was: Rishabh Patel)

> Replace Time.now() with Instant.now()
> -------------------------------------
>
>                 Key: HDDS-7911
>                 URL: https://issues.apache.org/jira/browse/HDDS-7911
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone Manager
>            Reporter: Tsz-wo Sze
>            Assignee: Rishabh Patel
>            Priority: Major
>
> OM uses Time.now() for creation time and modification time.  Time.now() 
> (org.apache.hadoop.util), which calls System.currentTimeMillis(),
>  - 
> [https://docs.oracle.com/javase/8/docs/api/java/lang/System.html#currentTimeMillis--]
> depends on the local time zone setting. It may cause problems when moving an 
> Ozone image from one machine to another machine with different time zone 
> settings.  Instead, we should use Instant.now()
>  - [https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#now--]
> which uses UTC time-zone.



--
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