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

   Fixes #3248
   
   ## Summary
   
   - protect the condition matcher and pattern-value extension registries with 
independent RWMutexes
   - copy factories while holding a read lock, then invoke them after unlocking 
so extension constructors can safely re-enter registration APIs
   - return structural snapshots from GetAllMatcher and GetAllValuePattern so 
callers cannot mutate global registration state
   - add snapshot-isolation and concurrent access coverage for both registries
   
   ## Scope
   
   This PR addresses only the extension-safety and API-hygiene subitems of 
#3248 for the condition router registries. It does not change matcher semantics 
or route evaluation.
   
   ## Testing
   
   - `go test ./cluster/router/condition/matcher/... -count=20`
   - `go test -race ./cluster/router/condition/matcher/... -count=10`
   - `go test ./cluster/router/condition/... -count=10`
   - `go test -race ./cluster/router/condition/... -count=10`
   - `go vet ./cluster/router/condition/...`
   - `golangci-lint run ./cluster/router/condition/...`
   - `make check-fmt`
   - `make test`
   
   ## Checklist
   
   - [x] Target branch is `develop`
   - [x] New behavior is covered by tests
   - [x] Formatting, lint, race, and full test suites pass locally
   - [x] Commit includes a Signed-off-by trailer


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