JingsongLi commented on code in PR #6642:
URL: https://github.com/apache/paimon/pull/6642#discussion_r2545306894


##########
paimon-core/src/main/java/org/apache/paimon/operation/PartitionExpire.java:
##########
@@ -75,7 +76,13 @@ public PartitionExpire(
         this.scan = scan;
         this.commit = commit;
         this.partitionHandler = partitionHandler;
-        this.lastCheck = LocalDateTime.now();
+        // Avoid the execution time of stream jobs from being too short and 
preventing partition
+        // expiration
+        long rndSeconds = 0;
+        if (!checkInterval.isZero()) {
+            rndSeconds = 
ThreadLocalRandom.current().nextLong(checkInterval.toMillis() / 1000);

Review Comment:
   Let it be zero always.



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