zjxxzjwang commented on code in PR #25010:
URL: https://github.com/apache/pulsar/pull/25010#discussion_r2643007853


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java:
##########
@@ -2252,4 +2252,17 @@ public HealthChecker getHealthChecker() {
         }
         return healthChecker;
     }
+
+    /**
+     * Check if message delay time exceeds TTL
+     *
+     * @param topic
+     * @param deliverAtTime
+     * @return true if message delay time exceeds TTL, false otherwise
+     */
+    public boolean isMessageDelayTimeExceedTTL(Topic topic, long 
deliverAtTime) {
+        return deliverAtTime
+                >= 
topic.getHierarchyTopicPolicies().getMessageTTLInSeconds().get() * 1000 + 
System.currentTimeMillis();

Review Comment:
   The new version of TTL means that messages will not expire, I will make 
modifications



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