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

Diagnose GOC halt #595

Closed
shaspitz opened this issue Dec 13, 2022 · 4 comments · Fixed by #462
Closed

Diagnose GOC halt #595

shaspitz opened this issue Dec 13, 2022 · 4 comments · Fixed by #462
Assignees
Labels
scope: testing Code review, testing, making sure the code is following the specification. type: bug Issues that need priority attention -- something isn't working

Comments

@shaspitz
Copy link
Contributor

shaspitz commented Dec 13, 2022

Problem

Lots of slack discussion, this is me documenting efforts to fully diagnose why the GOC halt happened.

Closing criteria

Be able to consistently replicate the GOC bug, and confirm that a specific patch prevents the bug from occurring.

Problem details

Our best guess at what happened is a deadlock caused by writing within iterators. Unfortunately, there are a good amount of unit and e2e tests covering the suspect code. But the halt/hang only occurred in the testnet.

@shaspitz shaspitz added type: bug Issues that need priority attention -- something isn't working scope: testing Code review, testing, making sure the code is following the specification. labels Dec 13, 2022
@shaspitz shaspitz self-assigned this Dec 13, 2022
@shaspitz
Copy link
Contributor Author

First step is to try out e2e, unit tests, and diff tests with a goleveldb backend

@shaspitz
Copy link
Contributor Author

shaspitz commented Dec 14, 2022

First step is to try out e2e, unit tests, and diff tests with a goleveldb backend

Tried this out in a hacky way by using

db, err := tmdb.NewGoLevelDB("testdb", "e2e")
if err != nil {
	panic(fmt.Sprintf("failed to create db: %v", err))
}

in specific_setup.go and running each e2e test independently. All throttle e2e tests passed, including one that recvs 500 packets

@jtremback
Copy link
Contributor

This is done, right?

@shaspitz
Copy link
Contributor Author

yes, will be closed by #462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: testing Code review, testing, making sure the code is following the specification. type: bug Issues that need priority attention -- something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants