nanjiek opened a new issue, #787: URL: https://github.com/apache/dubbo-go-pixiu/issues/787
### ✅ 验证清单 - [x] 🔍 我已经搜索过 [现有 Issues](https://github.com/apache/dubbo-go-pixiu/issues),确信这不是重复问题 ### 🚀 Go 版本 1.25.0 ### 📦 Dubbo-go-pixiu 版本 develop ### 🖥️ 服务端配置 _No response_ ### 💻 客户端配置 _No response_ ### 🌐 协议配置 _No response_ ### 📋 注册中心配置 _No response_ ### 💾 操作系统 🪟 Windows ### 📝 Bug 描述 When running go test -race for race detection in CI environment, two test modules fail with data race warnings. These data race issues exist in the test code and cause CI pipeline failures. `FAIL github.com/apache/dubbo-go-pixiu/pkg/adapter/mcpserver/registry/nacos 0.388s --- FAIL: TestNacosRegistryClient_ListenToMcpServer (0.03s) testing.go:1617: race detected during execution of test FAIL github.com/apache/dubbo-go-pixiu/pkg/filter/mcp/mcpserver/transport 0.131s --- FAIL: TestConcurrentSessionAccess (0.11s) testing.go:1617: race detected during execution of test` Impact Scope ❌ Affected: CI race detection fails, blocking PR merges ### 🔄 重现步骤 apply a pull requests ### ✅ 预期行为 No data race should occur during unit or integration tests. All tests should pass without race warnings. ### ❌ 实际行为 Data race detected when running tests with the `-race` flag. Race warnings appear in the test output, indicating concurrent access to shared variables or maps. Stack traces show conflicts in functions such as `mapConfigMapToServerConfig`, `ListenConfig`, or `SessionManager`. ### 💡 可能的解决方案 _No response_ -- 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]
