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

   ### Motivation
   
   https://github.com/apache/pulsar/pull/23298 introduce a regression that once 
the metadata node of this broker was deleted (e.g. by session timeout), the 
broker register would never have a chance to recover. In this case, the clients 
whose owner is this broker would never be able to produce or consume.
   
   ### Modifications
   
   In `ServiceUnitChannelImpl#handleBrokerRegistrationEvent`, try registering 
itself again in an asynchronous way if the deleted node is the current broker. 
Add a new state `Unregistering` to prevent the broker from registering itself 
again after `unregister()` is called.
   
   Add `BrokerRegistryIntegrationTest` to verify this fix and the behavior 
introduced from https://github.com/apache/pulsar/pull/23298
   
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: 


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