Skip to content

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