kerneltime commented on code in PR #6982:
URL: https://github.com/apache/ozone/pull/6982#discussion_r1692046210


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java:
##########
@@ -1815,7 +1814,7 @@ public List<ExpiredMultipartUploadsBucket> 
getExpiredMultipartUploads(
              mpuInfoTableIterator = getMultipartInfoTable().iterator()) {
 
       final long expiredCreationTimestamp =
-          Instant.now().minus(expireThreshold).toEpochMilli();
+          expireThreshold.negated().plusMillis(Time.now()).toMillis();

Review Comment:
   https://issues.apache.org/jira/browse/HDDS-7764 lists going to Time.now() as 
a temporary solution. We should switch to UTC time and not be dependent on 
local time zone configuration.



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

Reply via email to