github-actions[bot] commented on PR #1184: URL: https://github.com/apache/incubator-seata-go/pull/1184#issuecomment-5732902026
> Bot detected the issue body's language is not English, translate it automatically. The CI failed because an existing gRPC test triggered a data race, unrelated to this fix. Failed Use Case: `TestE2E_SyncRequestResponseFuture', Error: `warning: data race` Test A: [`TestE2E_HeartbeatSentToServer` (e2e_test.go: 125)] (https://github.com/apache/incubator-seata-go/blob/598074146bc4142dd33f29d5d2a2049c90ba0f6f/pkg/remoting/grpc/e2e_test.go # L125) Test B: [`TestE2E_SyncRequestResponseFuture` (e2e_test.go: 153)] (https://github.com/apache/incubator-seata-go/blob/598074146bc4142dd33f29d5d2a2049c90ba0f6f/pkg/remoting/grpc/e2e_test.go # L153)The previous heartbeat test A started the background message processing goroutine, while the WaitGroup during cleanup only waited for the transceiver cycle, and did not wait for the message processing goroutine to start internally.The latter test B then writes a shared `typeMap' at [`pkg/remoting/grpc/e2e_test.go: 159`] (https://github.com/apache/incubator-seata-go/blob/598074146bc4142dd33f29d5d2a2049c90ba0f6f/pkg/remoting/grpc/e2e_test.go # L159) and forms a data race with background message processing goroutine at [`pkg/remoting/grpc/listener.go: 147`] (https://github.com/apache/incubator-seata-go/blob/598074146bc4142dd33f29d5d2a2049c90ba0f6f/pkg/remoting/grpc/listener.go # L147) for unsynchronized reads of the same map. Local Recreation Orders: ```go test-race-count = 10-timeout 60s\ -run '^ TestE2E_(HeartbeatSentToServer | SyncRequestResponseFuture) $'\ ./pkg/remoting/grpc ``` At the same time, it was detected that `processorMap` also has the same type of competition -- 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]
