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-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org