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

[Merged by Bors] - sql: fix epoch ATX ID cache deadlock #5738

Closed
wants to merge 3 commits into from

Conversation

ivan4th
Copy link
Contributor

@ivan4th ivan4th commented Mar 19, 2024

Motivation

SQL query cache deadlocks b/c during transactions, SQLite lock is held while cache update lock is being acquired.

Description

Fixes the deadlock by bringing cached slice update out of the transactions.

Test Plan

Verified on mainnet

@ivan4th
Copy link
Contributor Author

ivan4th commented Mar 19, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Mar 19, 2024
## Motivation

SQL query cache deadlocks b/c during transactions, SQLite lock is held while cache update lock is being acquired.
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.0%. Comparing base (891a74f) to head (587d9a2).

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #5738   +/-   ##
=======================================
  Coverage     80.0%   80.0%           
=======================================
  Files          279     279           
  Lines        29046   29048    +2     
=======================================
+ Hits         23265   23267    +2     
- Misses        4183    4184    +1     
+ Partials      1598    1597    -1     

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

@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title sql: fix epoch ATX ID cache deadlock [Merged by Bors] - sql: fix epoch ATX ID cache deadlock Mar 19, 2024
@spacemesh-bors spacemesh-bors bot closed this Mar 19, 2024
@spacemesh-bors spacemesh-bors bot deleted the fix/sql-cache-upd branch March 19, 2024 17:58
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.

2 participants