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

[SeiDB] Fix concurrent map access #411

Merged
merged 1 commit into from
Jan 30, 2024
Merged

[SeiDB] Fix concurrent map access #411

merged 1 commit into from
Jan 30, 2024

Conversation

yzang2019
Copy link
Collaborator

Describe your changes and provide context

This should fix the concurrent map access for storeV2 root multistore over (rs.ckvStores). The problem is that it is currently not protected by a read lock so when other goroutine modify the map, it will throw panic

Testing performed to validate your change

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (5a1afb8) 54.81% compared to head (7934603) 54.81%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #411      +/-   ##
==========================================
- Coverage   54.81%   54.81%   -0.01%     
==========================================
  Files         622      622              
  Lines       52203    52205       +2     
==========================================
  Hits        28615    28615              
- Misses      21504    21506       +2     
  Partials     2084     2084              
Files Coverage Δ
storev2/rootmulti/store.go 3.08% <0.00%> (-0.02%) ⬇️

@yzang2019 yzang2019 merged commit 219175b into main Jan 30, 2024
14 of 15 checks passed
@yzang2019 yzang2019 deleted the yzang/SEI-6529 branch January 30, 2024 01:01
yzang2019 added a commit that referenced this pull request Jan 31, 2024
* main:
  [SeiDB] Fix concurrent map access (#411)
  No longer disable dynamic dep generation during ACL dependency generation (#404)
  fix(baseapp): Ensure Panic Recovery in Prepare & Process Handlers (#401)
  Revert removing events for cachekv (#396)
  Add migration handler for disabling seqno (#394)
yzang2019 added a commit that referenced this pull request Feb 2, 2024
## Describe your changes and provide context
This should fix the concurrent map access for storeV2 root multistore
over (rs.ckvStores). The problem is that it is currently not protected
by a read lock so when other goroutine modify the map, it will throw
panic

## Testing performed to validate your change
codchen pushed a commit that referenced this pull request Feb 6, 2024
## Describe your changes and provide context
This should fix the concurrent map access for storeV2 root multistore
over (rs.ckvStores). The problem is that it is currently not protected
by a read lock so when other goroutine modify the map, it will throw
panic

## Testing performed to validate your change
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.

3 participants