Skip to content

Create parent dirs for RocksDB backend fully#3022

Merged
Kbhat1 merged 2 commits intomainfrom
open-rocksdb-update
Mar 4, 2026
Merged

Create parent dirs for RocksDB backend fully#3022
Kbhat1 merged 2 commits intomainfrom
open-rocksdb-update

Conversation

@Kbhat1
Copy link
Contributor

@Kbhat1 Kbhat1 commented Mar 4, 2026

Describe your changes and provide context

  • For some rare cases where parent dirs are deleted, rocksdb doesn't use internal MkdirAll like what pebble does
  • Add back in

Testing performed to validate your change

  • Verified fully on node

Kbhat1 added 2 commits March 4, 2026 13:58
PebbleDB's Open internally calls MkdirAll to create the full directory
tree, but RocksDB's CreateIfMissing only creates the leaf directory.
This causes a panic when the EVM composite state store tries to open
sub-databases at nested paths like evm_ss/nonce where the intermediate
evm_ss/ directory doesn't exist yet.

Normalize the behavior in the backend adapter so both backends work
with arbitrary nested paths.

Made-with: Cursor
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 4, 2026, 10:14 PM

@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.39%. Comparing base (ca6816a) to head (c654066).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3022   +/-   ##
=======================================
  Coverage   58.39%   58.39%           
=======================================
  Files        2110     2110           
  Lines      175009   175009           
=======================================
  Hits       102191   102191           
  Misses      63793    63793           
  Partials     9025     9025           
Flag Coverage Δ
sei-chain-pr 60.00% <ø> (?)
sei-db 70.41% <ø> (ø)

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

🚀 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.

@Kbhat1 Kbhat1 merged commit 0fea76f into main Mar 4, 2026
41 of 42 checks passed
@Kbhat1 Kbhat1 deleted the open-rocksdb-update branch March 4, 2026 22:23
Kbhat1 added a commit that referenced this pull request Mar 4, 2026
## Describe your changes and provide context
- For some rare cases where parent dirs are deleted, rocksdb doesn't use
internal MkdirAll like what pebble does
- Add back in

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

3 participants