You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async.clusterMyId().thenAccept(this::setNodeId); in StatefulRedisClusterPubSubConnectionImpl's activated() will failed after
resubscribe(),and the exception was Command CLUSTER not allowed while subscribed. Allowed commands are: [PSUBSCRIBE, QUIT, PUNSUBSCRIBE, SUBSCRIBE, UNSUBSCRIBE, PING]
When I use client kill command to kill this sub connection on redis server,lettuce will reconnecting,and the CommandListener will print error message of cluster myid.
Environment
Lettuce version(s): 6.2.1.RELEASE
Redis version: 5.0.7
Possible Solution
StatefulRedisClusterPubSubConnectionImpl's resubscribe() set the nodeId at the same time.
Bug Report
async.clusterMyId().thenAccept(this::setNodeId);
in StatefulRedisClusterPubSubConnectionImpl's activated() will failed afterresubscribe(),and the exception was
Command CLUSTER not allowed while subscribed. Allowed commands are: [PSUBSCRIBE, QUIT, PUNSUBSCRIBE, SUBSCRIBE, UNSUBSCRIBE, PING]
Current Behavior
I have some codes like this:
When I use
client kill
command to kill this sub connection on redis server,lettuce will reconnecting,and the CommandListener will print error message of cluster myid.Environment
Possible Solution
StatefulRedisClusterPubSubConnectionImpl's resubscribe() set the nodeId at the same time.
StatefulRedisClusterPubSubConnectionImpl's activated() add some check codes
The text was updated successfully, but these errors were encountered: