Skip to content

Conversation

@insipx
Copy link
Contributor

@insipx insipx commented Apr 28, 2020

This PR adds rocksdb open_as_secondary api added in rust-rocksdb 0.14 to the parity kvdb-rocksdb crate

useful for reading from rocksdb while a node is running

blocked on #379

Secondary API RocksDB Docs: https://github.com/facebook/rocksdb/wiki/Secondary-instance

@parity-cla-bot

This comment has been minimized.

Co-authored-by: Andronik Ordian <[email protected]>
Copy link
Contributor

@ordian ordian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good modulo unresolved comments.

@insipx
Copy link
Contributor Author

insipx commented Apr 30, 2020

Yeah still investigating how exactly Rocksdb handles secondary connections, but should be resolved sometime today

insipx added 3 commits April 30, 2020 21:49
expand on what `try_catch_up_with_secondary` does, since
it may have some implications on the primary instance of rocksdb
according to L503-566 in `db/db_impl/db_impl_secondary.cc` of facebook/rocksdb
@insipx insipx marked this pull request as ready for review April 30, 2020 23:51
@insipx insipx changed the title [WIP] Add Rocksdb Secondary Instance Api Add Rocksdb Secondary Instance Api Apr 30, 2020
Copy link
Contributor

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, good job here. :)

@dvdplm dvdplm merged commit 990d45d into paritytech:master May 1, 2020
ordian pushed a commit that referenced this pull request May 5, 2020
* master: (56 commits)
  primitive-types: add no_std support for serde feature (#385)
  Add Rocksdb Secondary Instance Api (#384)
  kvdb-rocksdb: update rocksdb to 0.14 (#379)
  prepare releases for a few crates (#382)
  uint: fix UB in uint::from_big_endian (#381)
  Fix limit prefix delete case (#368)
  Add arbitrary trait implementation (#378)
  kvdb-rocksdb: optimize and rename iter_from_prefix  (#365)
  bump parity-util-mem (#376)
  parity-util-mem: fix for windows (#375)
  keccak-hash: fix bench and add one for range (#372)
  [parity-crypto] Release 0.6.1 (#373)
  keccak-hash: bump version to 0.5.1 (#371)
  keccak-hash: add keccak256_range and keccak512_range functions (#370)
  Allow pubkey recovery for all-zero messages (#369)
  Delete by prefix operator in kvdb (#360)
  kvdb: no overlay (#313)
  Ban duplicates of parity-uil-mem from being linked into the same program (#363)
  Use correct license ID (#362)
  Memtest example for Rocksdb (#349)
  ...
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.

4 participants