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 non-persisted diffs #2964

Merged
merged 5 commits into from Apr 12, 2024
Merged

fix non-persisted diffs #2964

merged 5 commits into from Apr 12, 2024

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Mar 27, 2024

Describe your changes

closes #2955

TODO

  • cover with unit tests

Indicate on which release or other PRs this topic is based on

0.32.1

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@tzemanovic tzemanovic force-pushed the tomas/fix-non-persisted-diffs branch from bb33044 to 54b6052 Compare March 27, 2024 14:18
@tzemanovic tzemanovic force-pushed the tomas/fix-non-persisted-diffs branch from 54b6052 to 6871679 Compare April 2, 2024 15:21
@tzemanovic tzemanovic marked this pull request as ready for review April 2, 2024 15:21
@tzemanovic tzemanovic requested a review from yito88 April 2, 2024 15:24
@tzemanovic tzemanovic marked this pull request as draft April 2, 2024 16:11
@tzemanovic tzemanovic force-pushed the tomas/fix-non-persisted-diffs branch from 6871679 to 8dd8d37 Compare April 3, 2024 10:04
tzemanovic added a commit that referenced this pull request Apr 3, 2024
@tzemanovic tzemanovic marked this pull request as ready for review April 3, 2024 10:10
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 96.33028% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 53.48%. Comparing base (61a0759) to head (58883a3).

Files Patch % Lines
crates/apps/src/lib/node/ledger/storage/rocksdb.rs 97.61% 2 Missing ⚠️
crates/core/src/storage.rs 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2964      +/-   ##
==========================================
+ Coverage   53.44%   53.48%   +0.03%     
==========================================
  Files         310      310              
  Lines      101574   101599      +25     
==========================================
+ Hits        54288    54340      +52     
+ Misses      47286    47259      -27     

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

@tzemanovic tzemanovic force-pushed the tomas/fix-non-persisted-diffs branch from 9cad008 to 58883a3 Compare April 3, 2024 16:23
tzemanovic added a commit that referenced this pull request Apr 3, 2024
* tomas/fix-non-persisted-diffs:
  changelog: add #2964
  test/DB: update rocksdb diffs and rollback tests
  DB: prune non-persisted diffs from prev block on every new block commit
  rocksdb: separate non-persisted diffs into new "rollback" column family
  core/storage: add `BlockHeight::checked_prev`
tzemanovic added a commit that referenced this pull request Apr 10, 2024
* origin/tomas/fix-non-persisted-diffs:
  changelog: add #2964
  test/DB: update rocksdb diffs and rollback tests
  DB: prune non-persisted diffs from prev block on every new block commit
  rocksdb: separate non-persisted diffs into new "rollback" column family
  core/storage: add `BlockHeight::checked_prev`
@tzemanovic tzemanovic merged commit 64bee8c into main Apr 12, 2024
18 of 19 checks passed
@tzemanovic tzemanovic deleted the tomas/fix-non-persisted-diffs branch April 12, 2024 10:22
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.

DB diffs pruning for new storage keys loops from current block height to first block
2 participants