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 storage height bugs and rocksdb read from arb. height and delete's diffs #706

Merged
merged 7 commits into from
Nov 14, 2022

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Oct 27, 2022

fixes #705

based on v0.9.0 v0.8.1

todo:

  • set some configurable limit on block height reads - finding diffs in DB requires iteration
    • added shell.storage_read_past_height_limit set to 3600 by default

@tzemanovic tzemanovic marked this pull request as ready for review October 28, 2022 09:26
tzemanovic added a commit that referenced this pull request Oct 28, 2022
james-chf added a commit that referenced this pull request Nov 3, 2022
…/merge-0.9.0

* tomas/storage-read-height-bug:
  changelog: add #706
  config: add `shell.storage_read_past_height_limit`, use it for queries
  storage: fix block heights used in read, write and delete
  rocksdb: fix delete_subspace_val diff write
  rocksdb: fix read_subspace_val_with_height
  test/storage: add a test for reading from arbitrary block heights

# Conflicts:
#	apps/src/lib/node/ledger/shell/mod.rs
tzemanovic added a commit that referenced this pull request Nov 4, 2022
* tomas/storage-read-height-bug:
  changelog: add #706
  config: add `shell.storage_read_past_height_limit`, use it for queries
  storage: fix block heights used in read, write and delete
  rocksdb: fix delete_subspace_val diff write
  rocksdb: fix read_subspace_val_with_height
  test/storage: add a test for reading from arbitrary block heights
yito88
yito88 previously approved these changes Nov 4, 2022
tzemanovic added a commit that referenced this pull request Nov 9, 2022
* tomas/storage-read-height-bug:
  rocksdb: refactor to use pattern match
  changelog: add #706
  config: add `shell.storage_read_past_height_limit`, use it for queries
  storage: fix block heights used in read, write and delete
  rocksdb: fix delete_subspace_val diff write
  rocksdb: fix read_subspace_val_with_height
  test/storage: add a test for reading from arbitrary block heights
@tzemanovic tzemanovic mentioned this pull request Nov 9, 2022
9 tasks
tzemanovic added a commit that referenced this pull request Nov 9, 2022
* tomas/storage-read-height-bug:
  rocksdb: refactor to use pattern match
  changelog: add #706
  config: add `shell.storage_read_past_height_limit`, use it for queries
  storage: fix block heights used in read, write and delete
  rocksdb: fix delete_subspace_val diff write
  rocksdb: fix read_subspace_val_with_height
  test/storage: add a test for reading from arbitrary block heights
@juped juped merged commit e84eaca into main Nov 14, 2022
@juped juped deleted the tomas/storage-read-height-bug branch November 14, 2022 18:37
juped pushed a commit that referenced this pull request Nov 14, 2022
* tomas/storage-read-height-bug:
  changelog: add #706
  config: add `shell.storage_read_past_height_limit`, use it for queries
  storage: fix block heights used in read, write and delete
  rocksdb: fix delete_subspace_val diff write
  rocksdb: fix read_subspace_val_with_height
  test/storage: add a test for reading from arbitrary block heights
@sezox81
Copy link

sezox81 commented Nov 27, 2022

fix storage height bugs and rocksdb read from arb. height and delete's diffs

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.

various storage height issues
4 participants