Skip to content

Conversation

@tzemanovic
Copy link
Collaborator

@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 force-pushed the tomas/storage-read-height-bug branch from f7fe272 to 6d9dad4 Compare October 28, 2022 09:24
@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
@tzemanovic tzemanovic requested a review from yito88 October 28, 2022 09:30
@tzemanovic tzemanovic force-pushed the tomas/storage-read-height-bug branch from eaa1d30 to 109ed6e Compare November 3, 2022 12:42
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

5 participants