juicewcode opened a new pull request, #7197:
URL: https://github.com/apache/shenyu/pull/7197
Fixes #6686
## Summary
- Replace `ArrayList` with `CopyOnWriteArrayList` in
`DiscoveryDataChangedEventSyncListener`.
- Add a deterministic concurrency test reproducing the issue scenario.
## Test
- Added `testOnChangeIsSafeWhenListenerIsAddedConcurrently`.
- The test pauses `onChange` while processing a listener, adds another
listener concurrently, then verifies that
`onChange` completes without throwing an exception.
--
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]