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

Fix data race for check state #153

Closed
wants to merge 1 commit into from
Closed

Fix data race for check state #153

wants to merge 1 commit into from

Conversation

BrandonWeng
Copy link
Contributor

@BrandonWeng BrandonWeng commented Feb 3, 2023

Describe your changes and provide context

Based on the logs, the data race is between QueryContext and the Finalizeblock for app.checkState.ctx.

I narrowed it cause and it seems like with UnsafeBypassCommitTimeoutOverride=true on by default, the single node consensus is much faster as it doesn't need to wait for timeout, all the datarace failures are happening in the query cli unit tests so i suspect that the queries and the async network are handled in different gorountines and thus have async access to checkState.Ctx (one is updating through finalizeBlock while the unit test is querying it)

Testing performed to validate your change

unit tests

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.

1 participant