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


##########
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:
   Thanks for the ping! I added `LONG_EXPIRE_SECONDS` only to work around the 
old behavior, so I think it can go. 
   
   I see the test helper never sets `creationTime`, so it stays 0 and now 
wouldn't be rejected. After the fix, 600s and 2s both break some injector 
tests, so I think now fits better.



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