Closed NijatShahverdiyev closed 3 months ago
I think you might be running into #1232 , see comment https://github.com/redis/lettuce/issues/1232#issuecomment-588132278
Could you please let me know if this helped?
@tishun thanks a bunch, you saved my week)). I am done with this issue.
@tishun thanks a bunch, you saved my week)). I am done with this issue.
Happy to help. We should address this though, so that other people don't run into it.
Bug Report
Current Behavior
I have configured elttuce sentinel connection like this, but I got _**NOAUTH Authentication required.**_. PS: We are using sentinel headless on kubernetes.
```java @Bean public RedisConnectionFactory redisConnectionFactory() { RedisSentinelConfiguration sentinelConfig = new RedisSentinelConfiguration() .master(masterName); sentinelConfig.sentinel(host, port); sentinelConfig.setPassword(redisPassword); LettuceClientConfiguration clientConfig = LettuceClientConfiguration.builder() .commandTimeout(Duration.ofMillis(redisConnectionTimeout)) .readFrom(ReadFrom.REPLICA_PREFERRED) .clientOptions(ClientOptions.builder() .protocolVersion(ProtocolVersion.RESP2) .build()) .build(); return new LettuceConnectionFactory(sentinelConfig, clientConfig); } @Bean("commonRedisTemplate") public RedisTemplateExpected behavior/code
Environment