You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/07/30 07:27:48 UTC

[GitHub] [pulsar] zymap commented on issue #7372: Messages on topic are deleted on restart of standalone cluster

zymap commented on issue #7372:
URL: https://github.com/apache/pulsar/issues/7372#issuecomment-666045385


   
   > The retentionPeriod on the namespace was set to -1 (infinite retention). However, this does not prevent that the data on the topic is removed. It seems that retentionSize should be set to -1 as well. So these settings should both be set to infinite. Only setting one of them isn't sufficient.
   
   Hi @ErikJansenIRefact. Yes, you are right. 
   
   There are two conditions for controlling the retention of a topic. Only both of them are specified as infinite, the topic will save forever. If there is a configuration that has satisfied with the delete condition, the topic will be deleted.
   ```
   # Default message retention time
   defaultRetentionTimeInMinutes=0
   
   # Default retention size
   defaultRetentionSizeInMB=0
   ```
   
   
   
   


----------------------------------------------------------------
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:
users@infra.apache.org