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

Return detailed errors on DB open instead of a single string. #35

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

alysenko-polytech
Copy link
Contributor

@alysenko-polytech alysenko-polytech commented Apr 4, 2024

This is needed to return RocksDbError with proper Status and RocksDB error codes, instead of DatabaseError with a single message string. This will allow us to handle Corrupted error code in scope of https://github.com/elastio/scalez/issues/626.
DB open functions, defined here, are almost exact copies of corresponding functions in c.h/c.cc, but return CppStatus instead of error string.

Also, get_sst_files got renamed into get_live_info. Updated function now also returns sequence number from the opened checkpoint DB.

Also, get_sst_files -> get_live_info. Updated function now also returns
sequence number from the opened checkpoint DB.

Part of elastio/scalez#626
@alysenko-polytech alysenko-polytech force-pushed the bug/626-data-corruption branch from a716dbb to fb0ff63 Compare April 5, 2024 14:38
@alysenko-polytech alysenko-polytech merged commit 480d63b into master Apr 5, 2024
6 checks passed
@alysenko-polytech alysenko-polytech deleted the bug/626-data-corruption branch April 5, 2024 18:05
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.

2 participants