Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cherrypick: fix ut failed about race #17108

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

daviszhen
Copy link
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue ##15577

#15629

#15675

What this PR does / why we need it:

1,解决data race
session取tenantInfo
tennantInfo内部都加了mutex.
全局变量globalAicm,globalRtMgr用原子变量包装。

2,ut 时序问题

打开client连接加了重试3次。会出现server 没启动成功,client就开始连接的情况。
将关闭client连接移动到 server 关闭之后。避免server还在发数据,client连接就断开的错误。

@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Jun 24, 2024
@mergify mergify bot requested a review from sukki37 June 24, 2024 07:18
@mergify mergify bot added the kind/bug Something isn't working label Jun 24, 2024
@mergify mergify bot merged commit fa926aa into matrixorigin:1.2-dev Jun 24, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants