We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
During certain redis operations, I am facing PartitionSelectorException.
Caused by: io.lettuce.core.cluster.PartitionSelectorException: Cannot determine a partition for slot 12004. at io.lettuce.core.cluster.PooledClusterConnectionProvider.getWriteConnection(PooledClusterConnectionProvider.java:164) at io.lettuce.core.cluster.PooledClusterConnectionProvider.getConnectionAsync(PooledClusterConnectionProvider.java:149) at io.lettuce.core.cluster.ClusterDistributionChannelWriter.doWrite(ClusterDistributionChannelWriter.java:170) at io.lettuce.core.cluster.ClusterDistributionChannelWriter.write(ClusterDistributionChannelWriter.java:103) at io.lettuce.core.RedisChannelHandler.dispatch(RedisChannelHandler.java:218) at io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl.dispatch(StatefulRedisClusterConnectionImpl.java:216) at io.lettuce.core.AbstractRedisAsyncCommands.dispatch(AbstractRedisAsyncCommands.java:676) at io.lettuce.core.AbstractRedisAsyncCommands.get(AbstractRedisAsyncCommands.java:960) at sun.reflect.GeneratedMethodAccessor425.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.lettuce.core.cluster.ClusterFutureSyncInvocationHandler.handleInvocation(ClusterFutureSyncInvocationHandler.java:122) at io.lettuce.core.internal.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:80) at com.sun.proxy.$Proxy254.get(Unknown Source) at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:68)
ClusterTopologyRefreshOptions topologyRefreshOptions = ClusterTopologyRefreshOptions.builder() .enablePeriodicRefresh(Duration.ofSeconds(30)) .enableAllAdaptiveRefreshTriggers() .build(); ClientOptions options = ClusterClientOptions.builder() .disconnectedBehavior(ClientOptions.DisconnectedBehavior.REJECT_COMMANDS) .autoReconnect(true) .topologyRefreshOptions(topologyRefreshOptions) .build(); GenericObjectPoolConfig genericObjectPoolConfig = new GenericObjectPoolConfig(); genericObjectPoolConfig.setMinIdle(8); genericObjectPoolConfig.setMaxIdle(16); genericObjectPoolConfig.setMaxTotal(16); LettucePoolingClientConfiguration.builder() .poolConfig(genericObjectPoolConfig) .clientOptions(options) .clientResources(clientResources) .build();
Redis cluster is healthy, all the metrics are as expected.
So, could give me some suggestions. Thank you!
The text was updated successfully, but these errors were encountered:
This happens if CLUSTER NODES doesn't report a master node for the intended slot.
CLUSTER NODES
Sorry, something went wrong.
Found the issue fixed here: #2178
@mp911de I guess it was a bug in older versions
No branches or pull requests
Bug Report
Current Behavior
During certain redis operations, I am facing PartitionSelectorException.
Stack trace
Input Code
Code Configuration
Expected behavior/code
Environment
Analysis
Redis cluster is healthy, all the metrics are as expected.
So, could give me some suggestions. Thank you!
The text was updated successfully, but these errors were encountered: