-
Notifications
You must be signed in to change notification settings - Fork 53
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
Java: Add PUBSUB SHARDCHANNELS command #2265
Conversation
java/client/src/main/java/glide/api/commands/PubSubClusterCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/PubSubClusterCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/PubSubClusterCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/PubSubClusterCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/commands/PubSubClusterCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/models/ClusterTransaction.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/models/ClusterTransaction.java
Outdated
Show resolved
Hide resolved
045ec2f
to
7842824
Compare
5d4dec3
to
bad2a3d
Compare
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.
LGTM
GlideClusterClient client = (GlideClusterClient) createClient(false); | ||
assertEquals(0, client.pubsubChannels().get().length); | ||
assertEquals(0, client.pubsubChannelsBinary().get().length); | ||
assertEquals(0, client.pubsubChannels("**").get().length); |
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.
"**" is not defined anywhere. Can you include a comment what you're doing here?
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.
Borrowed from PubSubTests#pubsub_channels(), but
- it's just a matching pattern, probably should use
*
instead of**
; - should use
pubsubShardChannels
instead ofpubsubChannels
, 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>
f78ff19
to
96a6efa
Compare
Implemented PUBSUB SHARDCHANNELS command in Java.