Skip to content

Conversation

DMwangnima
Copy link
Contributor

@DMwangnima DMwangnima commented Sep 24, 2024

What type of PR is this?

test

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

test: 修复 gRPC TestClientMix 数据竞争问题

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
When server.start and server.stop are executed concurrently, it is possible to cause concurrent reads and writes to the eventloop field.
The eventloop field is assigned a value before execution is allowed to continue.
Unit Test context: https://github.com/cloudwego/kitex/actions/runs/11010654292/job/30573068741?pr=1559
zh(optional):
当 server.start 与 server.stop 并发执行时,有可能造成 eventloop 字段的并发读写。
eventloop 字段赋值后才允许继续执行。
单测错误上下文:https://github.com/cloudwego/kitex/actions/runs/11010654292/job/30573068741?pr=1559

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

@DMwangnima DMwangnima requested review from a team as code owners September 24, 2024 09:56
@DMwangnima DMwangnima merged commit 19a3a6a into cloudwego:develop Sep 24, 2024
20 checks passed
@DMwangnima DMwangnima deleted the test/fix_grpc_data_race branch September 24, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants