ChenSammi commented on code in PR #12149:
URL: https://github.com/apache/ozone/pull/12149#discussion_r4679908375


##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/service/TestKeyLifecycleService.java:
##########
@@ -458,7 +455,7 @@ void testPeriodicStateSave(BucketLayout bucketLayout) 
throws Exception {
       try {
         // create Lifecycle configuration
         ZonedDateTime now = ZonedDateTime.now(ZoneOffset.UTC);
-        ZonedDateTime date = now.plusSeconds(EXPIRE_SECONDS);
+        ZonedDateTime date = now;

Review Comment:
   I would suggest keep the plusSeconds(EXPIRE_SECONDS), since OmLCExpiration 
rejects an in-past date. So using "now" only should make the test flaky, when 
unit test execution is slow sometimes.
   
   And for LONG_EXPIRE_SECONDS,  @chihsuan , can we use EXPIRE_SECONDS to 
replace it, or better keep the LONG_EXPIRE_SECONDS too? 



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