Skip to content

Guard LastCommitID with rootmulti read lock#3184

Merged
masih merged 1 commit intomainfrom
masih/last-commit-id-lock
Apr 3, 2026
Merged

Guard LastCommitID with rootmulti read lock#3184
masih merged 1 commit intomainfrom
masih/last-commit-id-lock

Conversation

@masih
Copy link
Copy Markdown
Collaborator

@masih masih commented Apr 3, 2026

Race Detection was intermittently failing in sei-cosmos/client/rpc because
Status -> ABCIInfo -> BaseApp.Info called rootmulti.Store.LastCommitID
while Commit was updating lastCommitInfo under rs.mtx.

Use the existing RWMutex for LastCommitID reads so integration test startup
polling no longer races with block commits.

Race Detection was intermittently failing in sei-cosmos/client/rpc because
Status -> ABCIInfo -> BaseApp.Info called rootmulti.Store.LastCommitID
while Commit was updating lastCommitInfo under rs.mtx.

Use the existing RWMutex for LastCommitID reads so integration test startup
polling no longer races with block commits.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 3, 2026, 2:25 PM

@masih masih requested a review from yzang2019 April 3, 2026 14:17
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.69%. Comparing base (2c00c3d) to head (41bd28a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3184   +/-   ##
=======================================
  Coverage   58.69%   58.69%           
=======================================
  Files        2055     2055           
  Lines      168379   168381    +2     
=======================================
+ Hits        98830    98832    +2     
  Misses      60737    60737           
  Partials     8812     8812           
Flag Coverage Δ
sei-chain-pr 62.32% <100.00%> (?)
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sei-cosmos/storev2/rootmulti/store.go 64.28% <100.00%> (+0.12%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@masih masih added this pull request to the merge queue Apr 3, 2026
Merged via the queue into main with commit f93771a Apr 3, 2026
43 of 44 checks passed
@masih masih deleted the masih/last-commit-id-lock branch April 3, 2026 14:42
github-actions bot pushed a commit that referenced this pull request Apr 3, 2026
Race Detection was intermittently failing in sei-cosmos/client/rpc
because
Status -> ABCIInfo -> BaseApp.Info called rootmulti.Store.LastCommitID
while Commit was updating lastCommitInfo under rs.mtx.

Use the existing RWMutex for LastCommitID reads so integration test
startup
polling no longer races with block commits.

(cherry picked from commit f93771a)
@seidroid
Copy link
Copy Markdown

seidroid bot commented Apr 3, 2026

Successfully created backport PR for release/v6.4:

masih added a commit that referenced this pull request Apr 3, 2026
…3186)

Backport of #3184 to `release/v6.4`.

Co-authored-by: Masih H. Derkani <m@derkani.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants