Jennifer88huang commented on pull request #8397:
URL: https://github.com/apache/pulsar/pull/8397#issuecomment-718390508


   @ErikJansenIRefact 
   
   > Hi,
   > 
   > In general good improvements in describing the behaviour of the retention 
settings.
   > I would suggest however that you describe the behaviour when both settings 
(time and size) have a value > 0. Are the messages now removed if one of the 
thresholds exceeds or only if both of them are exceeded. So are the settings a 
"logical and" or a "logical or"?
   > 
   > And is the 0-value treated as a special value? So, if size = 10Gb and 
time=0 are message now removed if size > 10Gb?
   > And if size = 10Gb and time = 1d are messages now removed if either the 
size or the time is exceeded?
   
   Good question.  it's "logical or". However, if you set either to `0`, the 
retention is disabled.
   @lhotari Thank you for helping answer the question, and provide the related 
doc. 
   I'll add more details here to make it clear.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to