liuwenjing17 commented on code in PR #5599:
URL: https://github.com/apache/hbase/pull/5599#discussion_r1441643275


##########
hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestExpiredMobFileCleaner.java:
##########
@@ -140,7 +140,8 @@ public void testCleaner() throws Exception {
     assertEquals("Before cleanup without delay 1", 1, firstFiles.length);
     String firstFile = firstFiles[0].getPath().getName();
 
-    ts = EnvironmentEdgeManager.currentTime() - 1 * secondsOfDay() * 1000; // 
1 day before
+    ts = (long) (EnvironmentEdgeManager.currentTime() - 1.5 * secondsOfDay() * 
1000); // 1.5 day

Review Comment:
   When the time-to-live (TTL) is set to 2 days (48 hours), the mob data that 
exists for 1.5 days (36 hours) should be readable. However, in the previous 
version, only mob data that existed for up to 1 day could be accessed, and mob 
data that existed for more than 1 day but less than 2 days could not be 
accessed. Therefore, I have modified the ts setting to 1.5 days.



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

Reply via email to