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

feature: Consider allowing opening the database in "read-only" or "secondary" mode #8078

Closed
Tracked by #7728
upbqdn opened this issue Dec 8, 2023 · 0 comments · Fixed by #8079
Closed
Tracked by #7728

feature: Consider allowing opening the database in "read-only" or "secondary" mode #8078

upbqdn opened this issue Dec 8, 2023 · 0 comments · Fixed by #8079
Assignees
Labels
A-state Area: State / database changes C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage

Comments

@upbqdn
Copy link
Member

upbqdn commented Dec 8, 2023

Motivation

Zebra currently uses the open_cf_descriptors function here to open the database.

I was using the zebra-scan crate in a separate binary to access the scanning results while running Zebra. The crate tried to open the same database as Zebra in read-write mode, and since Zebra was running, I couldn't access the database.

RocksDB supports opening the database in "read-only" or "secondary" mode, which would allow separate binaries that use, for example, the zebra_scan crate, to read the scanning results while Zebra is running.

Specifications

RocksDB's "read-only" and "secondary" modes: https://github.com/facebook/rocksdb/wiki/Read-only-and-Secondary-instances

Rust bindings:

@upbqdn upbqdn added C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage A-state Area: State / database changes labels Dec 8, 2023
@mpguerra mpguerra linked a pull request Dec 11, 2023 that will close this issue
7 tasks
@mergify mergify bot closed this as completed in #8079 Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-state Area: State / database changes C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant