Skip to content

Conversation

chakaz
Copy link
Contributor

@chakaz chakaz commented May 23, 2023

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.

Implementation includes support for both emulated mode and real cluster
mode.

Fixes #1276.
@chakaz chakaz requested a review from adiholden May 23, 2023 19:42

auto vec = server_family_->GetDflyCmd()->GetReplicasRoleInfo();
if (!vec.empty()) {
info.replicas.push_back({.id = etl.remote_client_id_,
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@chakaz chakaz requested a review from adiholden May 24, 2023 08:40
"nodes", //
RespArray(ElementsAre( //
RespArray(ElementsAre( //
"id", _, //
Copy link
Contributor

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"}) ?

Copy link
Contributor Author

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 :)

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, PTAL.

@chakaz chakaz requested a review from adiholden May 24, 2023 10:26
@chakaz chakaz merged commit bc717a0 into main May 24, 2023
@romange romange deleted the cluster-shards branch June 7, 2023 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement CLUSTER SHARDS command
2 participants