-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[GCS][Storage unification 3/n] Deprecate MemoryInternalKV, use StoreClientInternalKV<MemoryStoreClient> instead #24211
Conversation
if (storage_type_ == "redis") { | ||
instance = std::make_unique<RedisInternalKV>(GetRedisClientOptions()); | ||
} else if (storage_type_ == "memory") { | ||
instance = std::make_unique<MemoryInternalKV>(main_service_); | ||
instance = std::make_unique<StoreClientInternalKV>( | ||
std::make_unique<InMemoryStoreClient>(main_service_)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just use store clients here? Also for redis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I think this will mostly impact Ant. cc @raulchen to see if we should turn it on by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remind me why we can't build table on top of internal kv?
Yeah I think it's because of |
My feeling is that we should hide the underline store from internal kv and it should be built upon StoreClient directly. In the end, the store client will be used by table and kv. We can use memory or Redis as the backend of the store client. |
Why are these changes needed?
In this PR, we deprecated MemoryInternalKV. Instead, we use a wrapper that wraps around MemoryStoreClient. This PR is build upon #23754 and #23725
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.