dingshuangxi888 opened a new pull request, #11669:
URL: https://github.com/apache/rocketmq/pull/11669

   ### Which Issue(s) This PR Fixes
   
   Fixes #11668
   
   ### Brief Description
   
   Move the Proxy unregister broadcast from the entry to 
`ClusterConsumerManager.unregisterConsumer` to the local `CLIENT_UNREGISTER` 
event. Explicit unregister, Remoting disconnect, and channel expiry now use the 
same notification path. Receiving a remote unregister still clears the 
corresponding channel cache entry without forwarding the message.
   
   When an expiry scan races with explicit unregister, emit the callback only 
if the scan removes the entry it examined. This prevents the scan from 
notifying listeners a second time after an explicit unregister has already 
removed that member.
   
   ### How Did You Test This Change?
   
   Ran `ConsumerManagerTest`, `ClusterConsumerManagerTest`, and 
`HeartbeatSyncerTest` on Linux with OpenJDK 11. All 24 tests passed. Repeated 
`testExpiryScanRacingUnregisterBroadcastsOnce` 300 times with no failures or 
skips.
   
   The tests cover registered and unknown consumers, a connection shared by two 
groups, expiry racing with explicit unregister, and handling a remote 
unregister without rebroadcasting it.


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