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 b/c of lacking lock protection for "data" slice #6017

Closed
wants to merge 2 commits into from

Conversation

Zensey
Copy link
Contributor

@Zensey Zensey commented Mar 18, 2024

Resolve: #5999 (comment)
To reproduce run go run mage.go test

The test which reproduces the race: TestConsumerBalanceTracker_RecoverGrandTotalPromisedSettledIsBiggerThanPromissedNotOffChain

@Zensey Zensey self-assigned this Mar 18, 2024
@Zensey Zensey changed the title Fix data race b/c of lacking lock protection for "data" slice [wip] Fix data race b/c of lacking lock protection for "data" slice Mar 18, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.84%. Comparing base (4a517cd) to head (e759905).
Report is 28 commits behind head on master.

❗ Current head e759905 differs from pull request most recent head d9aca9f. Consider uploading reports for the commit d9aca9f to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6017      +/-   ##
==========================================
- Coverage   37.90%   37.84%   -0.07%     
==========================================
  Files         371      371              
  Lines       20665    20667       +2     
==========================================
- Hits         7833     7821      -12     
- Misses      12054    12065      +11     
- Partials      778      781       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Zensey Zensey changed the title [wip] Fix data race b/c of lacking lock protection for "data" slice Fix data race b/c of lacking lock protection for "data" slice Mar 18, 2024
@Zensey Zensey force-pushed the fix/datarace2 branch 4 times, most recently from 1d3068f to e759905 Compare April 2, 2024 13:15
@Zensey Zensey force-pushed the fix/datarace2 branch 2 times, most recently from d9aca9f to 791d878 Compare April 2, 2024 13:22
Signed-off-by: Anton Litvinov <[email protected]>
@Zensey Zensey closed this Apr 3, 2024
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.

Data races
2 participants