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

network: fix TestTryInitStateSync logging data race #3308

Closed
wants to merge 1 commit into from

Conversation

AliceInHunterland
Copy link
Contributor

Fixed race condition where logging occurs after a test case has been marked as completed, which is causing a panic.
It should be after #3307 to prevent the twice-closing problem.

Close #3112

Fixed race condition where logging occurs after a test case has been
marked as completed, which is causing a panic.

Close #3112

Signed-off-by: Ekaterina Pavlova <[email protected]>
Comment on lines 1083 to +1084
s := startTestServer(t)
defer s.Shutdown()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems that this problem is the same as #3307 (comment), so we need to refactor all code related to startWithCleanup functionality, because currently it just doesn't work.

@AnnaShaleva
Copy link
Member

Closing this PR as not relevant since the logger problem will be fixed in #3307. Ref. #3307 (comment).

@AliceInHunterland AliceInHunterland deleted the TestTryInitStateSync branch February 15, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log in goroutine after TestTryInitStateSync has completed
2 participants