Skip to content
New issue

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

redis API: role #902

Closed
epubreader opened this issue May 2, 2020 · 2 comments
Closed

redis API: role #902

epubreader opened this issue May 2, 2020 · 2 comments
Labels
bug redis API redis API compatibility

Comments

@epubreader
Copy link

我是用spring data redis 客户端发现这个问题的, 配置master 和 slave时发现的

io.lettuce.core.RedisCommandExecutionException: Err unknown or unsupported command 'role' at io.lettuce.core.ExceptionFactory.createExecutionException(ExceptionFactory.java:135) ~[lettuce-core-5.1.8.RELEASE.jar!/:na] at io.lettuce.core.ExceptionFactory.createExecutionException(ExceptionFactory.java:108) ~[lettuce-core-5.1.8.RELEASE.jar!/:na] at io.lettuce.core.RedisPublisher$SubscriptionCommand.complete(RedisPublisher.java:751) ~[lettuce-core-5.1.8.RELEASE.jar!/:na]

` LettuceClientConfiguration clientConfig = LettuceClientConfiguration.builder()
.readFrom(ReadFrom.SLAVE_PREFERRED)
.build();

    RedisStaticMasterReplicaConfiguration serverConfig = new RedisStaticMasterReplicaConfiguration(fileRedisProperty.getHost(), fileRedisProperty.getPort());`
@whoiami
Copy link
Contributor

whoiami commented May 14, 2020

目前是不支持的 因为 这个命令跟pika内部 有点冲突,redis 的role 有master slave sentinel,pika的role 还有master && slave 串行的情况。

@wanghenshui wanghenshui reopened this Mar 18, 2023
@wanghenshui wanghenshui changed the title 不支持redis的role命令 redis API: role Mar 18, 2023
@yaoyinnan
Copy link
Contributor

0715 李浩修改锁粒度

@yaoyinnan yaoyinnan added bug redis API redis API compatibility labels Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug redis API redis API compatibility
Projects
None yet
Development

No branches or pull requests

5 participants