wolfstudy opened a new pull request, #15628:
URL: https://github.com/apache/pulsar/pull/15628

   Signed-off-by: xiaolongran <[email protected]>
   
   
   ### Motivation
   
   The current TTL policy conflicts with delayed messages. The TTL policy does 
not identify how long to delay messages. When the time of the delayed message 
is greater than the time specified by TTL, we should give up checking the TTL 
of the current delayed message, because the time of the delayed message has not 
yet arrived, we cannot expired these messages.
   
   ### Modifications
   
   When the TTL is ready to expire the message, check whether the current entry 
contains the `deliverAtTime` field. If it contains a delayed message, then 
check whether the current delayed message time is greater than the ttl time. If 
it is greater, it means that we cannot expire the current entry at this time. .
   
   


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