dlg99 commented on issue #9962: URL: https://github.com/apache/pulsar/issues/9962#issuecomment-1139833868
@michaeljmarshall @zymap @codelipenghui @eolivelli a gist of the test "reproing" the problem: https://gist.github.com/dlg99/caecaee9d7c8fa690027ce8843e3948e For the offloaded ledgers to get deleted one needs to truncate the topic first and delete after that. This can be done in admin utils but it is an easy to miss step and one cannot truncate a topic after it is deleted. This is fairly easy to do a part of `PersistentTopic.delete()`: https://gist.github.com/dlg99/98e60774004e9ae1daeaff8f0728cf5b (needs test at PersistentTopic level) The real question is are there any reasons to not truncate a topic before deletion? does it have to be behind a feature flag/CLI option? Personally, I don't see a reason and I agree with @michaeljmarshall that operator deleting the topic expects to see everything deleted. -- 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]
