Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(agent/reconnectingpty): generate rpty id before starting lifecycle#15475

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 1 commit intomainfromcj/agent-rpty-data-race
Nov 11, 2024

Conversation

@johnstcn
Copy link
Member

Fixes#12687

There was a race condition where we would start the rpty lifecycle before generating the ID, leading to a data race where we would try to concurrently read and write the struct field.

@johnstcnjohnstcn self-assigned thisNov 11, 2024
@johnstcnjohnstcn merged commitb6e7498 intomainNov 11, 2024
27 checks passed
@johnstcnjohnstcn deleted the cj/agent-rpty-data-race branchNovember 11, 2024 15:02
johnstcn added a commit that referenced this pull requestNov 15, 2024
Fixescoder/internal#214#15475 missed that we also write to `rpty` after starting`rpty.lifecycle()`.This PR moves the function call right at the end. Hopefully this shouldaddress the data races before we go resorting to mutexes.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mafredrimafredrimafredri approved these changes

Assignees

@johnstcnjohnstcn

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

flake: data race in scaletest/reconnectingpty Test_Runner/ExpectTimeout/NoTimeout

3 participants

@johnstcn@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp