Skip to content

Rocksdb version bump is causing issues with secondary access #5798

Closed as not planned
@steviez

Description

@steviez

Problem

#4210 bumped the rust-rocksdb version from 0.22.0 to 0.23.0 (which implicitly bumped the underlying rocksdb tag).

I observed an issue with the following setup:

  • agave-validator is running with Primary access (validator ALWAYS has Primary access for R+W)
  • agave-ledger-tool command is executed to access blockstore with Secondary access

The issue I'm observing is that Blockstore::open() is not returning in agave-ledger-tool. Something that takes 10-20 seconds on a MNB blockstore is taking multiple minutes before I kill it. I bisected and confirmed that the version bump is what introduced this regression.

Proposed Solution

  1. For now, I am going to revert the version bump so that the tip of master doesn't have this bug
  2. Debug what changed from 0.22.0 to 0.23.0 (including the delta in the actual rocksdb). The process is either hung or taking way too long, so building with debug symbols (cargo build --profile release-with-debug) and attaching gdb to agave-ledger-tool should be fairly illuminating

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions