eolivelli opened a new pull request, #17592:
URL: https://github.com/apache/pulsar/pull/17592

   Fixes #17588
   
   ### Motivation
   
   In Pulsar 2.10.1 with #14730 we introduced a check about concurrent deletion 
of Namespaces.
   This broke the deletion of namespaces in case of a partial failure.
   
   When you delete a namespace we collect all the resources, then we mark the 
namespace as "deleted", then we do the deletion.
   if some failure happens and the procedure does not complete, then the 
namespaces stays in "deleted" status.
   And if you try to delete it again you see the error in #17588 "The namespace 
is deleted", because getListOfNonPersistentTopics() performs a check about the 
status of the namespace.  
   
   ### Modifications
   
   Do not check the flag "Policies.deleted" while listing non-persistent 
topics.รจ
   
   
   ### Verifying this change
   
   I will add tests
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
   
   - [x] `doc-not-needed` 
   It is a bug fix for a regression
   
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)
   


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