-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(cluster): Implement CLUSTER SHARDS
.
#1284
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
Conversation
Implementation includes support for both emulated mode and real cluster mode. Fixes #1276.
|
||
auto vec = server_family_->GetDflyCmd()->GetReplicasRoleInfo(); | ||
if (!vec.empty()) { | ||
info.replicas.push_back({.id = etl.remote_client_id_, |
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 for loop on vec?
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.
You're right. I copied from below. I'll also fix them later for the other commands.
src/server/cluster_family_test.cc
Outdated
"nodes", // | ||
RespArray(ElementsAre( // | ||
RespArray(ElementsAre( // | ||
"id", _, // |
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.
maybe compare the id to RunAdmin({"dflycluster", "myid"}) ?
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.
That's a good idea, once that command is merged in :)
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.
Oh, sorry, it's already merged in. I'll use it.
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.
Done, PTAL.
Implementation includes support for both emulated mode and real cluster mode.
Implementation also includes a new test matcher and some monstrous
EXPECT
statements, reader be warned :)Fixes #1276.