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
But DefaultRedisClusterClientFactory bypassing this codec because not provide codec when call client.connect() like in non-cluster configuration.
This behaviour causes errors on kubernetes where redis-cluster running, because connection uses default lettuce StringCodec instead of user-defined codec.
It is possible to inherit AbstractRedisClientFactory<K, V> like in DefaultRedisClientFactory and create StatefulRedisClusterConnection with user defined codec?
For now i have work around for this issue with custom configuration but i wont have this code in my app.
There is a issue with RedisCodec when using different environment configuration (cluster, non-cluster) when using custom codec.
When developing on localhost i use standalone non-cluster redis. This configuration uses codec created in my factory class.
But
DefaultRedisClusterClientFactory
bypassing this codec because not provide codec when callclient.connect()
like in non-cluster configuration.This behaviour causes errors on kubernetes where redis-cluster running, because connection uses default lettuce StringCodec instead of user-defined codec.
It is possible to inherit AbstractRedisClientFactory<K, V> like in DefaultRedisClientFactory and create StatefulRedisClusterConnection with user defined codec?
For now i have work around for this issue with custom configuration but i wont have this code in my app.
This is the class which, i think, need improvements.
micronaut-redis/redis-lettuce/src/main/java/io/micronaut/configuration/lettuce/DefaultRedisClusterClientFactory.java
Line 45 in 80009dc
The text was updated successfully, but these errors were encountered: