codelipenghui commented on PR #22014:
URL: https://github.com/apache/pulsar/pull/22014#issuecomment-1924897805

   > This change is applied only to avoid the race condition when unloading a 
namespace bundle. However, the client should not fail if the topic-level 
policies are not available.
   
   The risk is if users have data retention policy on the topic but no data 
retention on the namespace, the produced data will be removed by the broker if 
no subscriptions. 
   
   For example, you might have 10GB produced data with data retention policy 
before. If the topic been unloaded and reload by another broker without the 
topic policy, all the 10GB data will be removed permanently. It could be high 
risk to users. 
   
   And other policies will also have the similar problem, persistence policy 
(replicas), backlog policy, geo-replication …


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

Reply via email to