Skip to content

Conversation

@siying
Copy link
Contributor

@siying siying commented Nov 10, 2025

What changes were proposed in this pull request?

Add a keyExists() function in StateStore. In RocksDB state store, it would use RocksDB's keyExists(), while by default, it will check whether get() to return any value. Change deduplication to use keyExists(), rather than get() to see whether the key exists in the state store.

Why are the changes needed?

Dedup operation now uses RocksDB's Get() only to check if there is result. Rather than doing that, it can use keyExists(), which serves the exact purpose but is faster.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing RocksDBStateStoreStreamingDeduplicationSuite should already cover this case.

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

No.

@anishshri-db
Copy link
Contributor

@siying - can we also add some unit tests in RocksDBSuite as well ?

@anishshri-db
Copy link
Contributor

LGTM pending green CI

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.

2 participants