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 2021/08/15 00:37:59 UTC

[GitHub] [pulsar] merlimat opened a new pull request #11672: If a topic has compaction policies configured, we must ensure the subscription is always pre-created

merlimat opened a new pull request #11672:
URL: https://github.com/apache/pulsar/pull/11672


   ### Motivation
   
   When using a compacted topic, the compaction cursor ensure that everything that is published after the last compaction run is retained in the topic. The problem is that the cursor is only created when the compaction runs for the first time. 
   
   If a topic as a threshold-based compaction schedule, this might get triggered for the first time well after the retention time of the data, causing data loss at the beginning of the topic. Instead, we should ensure that when the topic is created the subscription is created as well, before the topic can accept publishes.
   
   Similarly, if the policy is added later on, we should start retain data from that moment.
   
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] merlimat merged pull request #11672: If a topic has compaction policies configured, we must ensure the subscription is always pre-created

Posted by GitBox <gi...@apache.org>.
merlimat merged pull request #11672:
URL: https://github.com/apache/pulsar/pull/11672


   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org