fallintoplace opened a new pull request, #3333:
URL: https://github.com/apache/dubbo-go/pull/3333

   ## What changed
   
   - Guard BaseConfigurationListener state with an RWMutex.
   - Return copied configurator snapshots from Configurators.
   - Make OverrideUrl iterate a snapshot instead of the live slice.
   - Add tests for snapshot isolation and concurrent Process / Configurators / 
OverrideUrl access.
   
   ## Why
   
   Config center callbacks can replace BaseConfigurationListener.configurators 
while provider or consumer override paths read or iterate it. That leaves the 
shared slice exposed to data races during dynamic config updates.
   
   Fixes #3332
   
   ## Tests
   
   - go test ./registry -run 'TestBaseConfigurationListener'
   - go test -race ./registry -run 'TestBaseConfigurationListener'
   - go test ./registry
   - go test -race ./registry
   - go test ./...


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to