Skip to content
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

Java: Add PUBSUB SHARDCHANNELS command #2265

Merged

Conversation

jamesx-improving
Copy link
Collaborator

Implemented PUBSUB SHARDCHANNELS command in Java.

@jamesx-improving jamesx-improving requested a review from a team as a code owner September 10, 2024 21:22
@Yury-Fridlyand Yury-Fridlyand added the java issues and fixes related to the java client label Sep 10, 2024
@jamesx-improving jamesx-improving force-pushed the java/jamesx-pubsub-shardchannels branch 2 times, most recently from 5d4dec3 to bad2a3d Compare September 11, 2024 18:04
Copy link
Collaborator

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

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

LGTM

GlideClusterClient client = (GlideClusterClient) createClient(false);
assertEquals(0, client.pubsubChannels().get().length);
assertEquals(0, client.pubsubChannelsBinary().get().length);
assertEquals(0, client.pubsubChannels("**").get().length);
Copy link
Collaborator

Choose a reason for hiding this comment

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

"**" is not defined anywhere. Can you include a comment what you're doing here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Borrowed from PubSubTests#pubsub_channels(), but

  1. it's just a matching pattern, probably should use * instead of **;
  2. should use pubsubShardChannels instead of pubsubChannels, as we are testing it.

Will fix these 2

Signed-off-by: James Xin <james.xin@improving.com>
Signed-off-by: James Xin <james.xin@improving.com>
Signed-off-by: James Xin <james.xin@improving.com>
Signed-off-by: James Xin <james.xin@improving.com>
Signed-off-by: James Xin <james.xin@improving.com>
@jamesx-improving jamesx-improving merged commit e997eea into valkey-io:main Sep 12, 2024
13 checks passed
@jamesx-improving jamesx-improving deleted the java/jamesx-pubsub-shardchannels branch September 12, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java issues and fixes related to the java client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants