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
The pub-sub for the cluster is not working and complaint about the encoder, method. I have tested this with the following versions of netty
<io.netty.version>4.1.109.Final</io.netty.version>
<io.netty.version>4.1.59.Final</io.netty.version>
publicvoidpublishToEncounterCheckoutTimeChannel(CacheConstantscacheConstants, Stringkey, StringcheckoutTimeInSeconds) {
StringredisKey = this.getDelimiter().add(cacheConstants.getCacheName()).add(key).toString();
StatefulRedisClusterPubSubConnection<String, String> connection= connectToRedisCluster.getClusterPubSubConnection();
RedisClusterPubSubCommandscommands = connection.sync();
commands.publish("EncounterCheckoutTimeChannel",redisKey );
// The may be in secondscommands.expire(redisKey ,Long.parseLong(checkoutTimeInSeconds));
}
publicStatefulRedisClusterPubSubConnection<String, String> getClusterPubSubConnection() {
clusterClient = this.establishConnection();
returnclusterClient.connectPubSub();
}
//following works as I am using same setup with regular(NON Pubsub) setupsprivateRedisClusterClientestablishConnection() {
StringprofileName = configProperties.getProperty("buildProfile");
logger.info("Profile Name :- {}", profileName);
charauthpswdcharArray[] = configProperties.getProperty("authPassword").toCharArray();
logger.debug("authPasswordArray:"+authpswdcharArray.toString());
logger.debug("ClusterHost :- {}", configProperties.getProperty("ECclusterhost"));
booleansslFlag = true;
if(profileName.equalsIgnoreCase("standalone")){
sslFlag = false;
}
RedisURIredisURI = RedisURI.Builder.redis(configProperties.getProperty("ECclusterhost"),
Integer.parseInt(configProperties.getProperty("ECclusterport"))).withPassword(authpswdcharArray).withSsl(sslFlag).build();
clusterClient = RedisClusterClient.create(redisURI);
logger.debug("clusterClient got created :- {}", clusterClient);
returnclusterClient;
}
Expected behavior/code
Environment
Lettuce version(s): [ 6.0.2.RELEASE]
Redis version: checking against AWS, not sure about the appropriate version.
Possible Solution
There should not be an error for the encoder method as I believe I am using the appropriate version of netty.
StatefulRedisClusterPubSubConnection should work.
Additional context
The text was updated successfully, but these errors were encountered:
Bug Report
Current Behavior
The pub-sub for the cluster is not working and complaint about the encoder, method. I have tested this with the following versions of netty
<io.netty.version>4.1.109.Final</io.netty.version>
<io.netty.version>4.1.59.Final</io.netty.version>
Stack trace
Input Code
Input Code
Expected behavior/code
Environment
Possible Solution
There should not be an error for the encoder method as I believe I am using the appropriate version of netty.
StatefulRedisClusterPubSubConnection should work.
Additional context
The text was updated successfully, but these errors were encountered: