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

check whether RocksDB already loads with the latest snapshot #46927

Closed
wants to merge 2 commits into from

Conversation

eason-yuchen-liu
Copy link
Contributor

What changes were proposed in this pull request?

When using RocksDB state store provider to load a given checkpoint, if the RocksDB's loaded version != the checkpoint version, RocksDB will first load the latest snapshot that is prior to the checkpoint version. Right now without checking whether the RockDB is already loaded with the latest snapshot, RocksDB will always be closed and restarted. This PR proposes to first check the version before restart the DB.

Why are the changes needed?

In some case (though may be rare), RocksDB instance is already loaded with the latest snapshot version, so it does not have to be restarted. This PR can eliminate this unnecessary overhead.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Passing all existing test suites.

Was this patch authored or co-authored using generative AI tooling?

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant