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
"Command cannot be issued to a slave" after a Redis cluster failover #282
Comments
The issue is still present in version 1.1.553 alpha. |
Ok gotcha - looks like the topology isn't updating properly on cluster changes which may explain a few bugs - we'll take a look. We don't have a cluster readily setup due to not using it at Stack, so it may be a bit before we can test. |
This is likely also solved via #314 and the latest commit. We'll try and get a new package up this week or next...still going through many of the issues in the backlog. |
I appear to still be hitting this bug (specifically for reads - HGET/HGETALL) when I CLUSTER FAILOVER manually. Has anyone confirmed if this is fixed in any recent version? I'm currently using 1.1.608. |
Lots of changes since this was filed addressing the issue. If anyone's still seeing this in 1.2.6 or later, please ping and I'll re-open. Right now I'm unable to produce that and haven't gotten any reports on recent versions. |
@NickCraver Hi, doing a similar scenario I got the same error for ZADD command |
We get this error in Production as well as in the lower environments. We're running 2.0.601 against Azure Redis Cache. It happens only a few times a month, every episode lasting no more than 30 seconds. Mostly happens on DEL commands, sometimes on PEXPIRE and UNLINK. Looking at the app logs I don't see anything interesting on our side leading up to this, so it seems to be entirely induced by something happening on the Azure Redis Cache side. Any ideas how I can further troubleshoot this, what else I can look at?
|
I also am getting this error, also from the Azure Redis Cache implementation. |
I'm getting this error in version 2.1.58 with the error message... |
A lot was improved here in the 2.2.50 release - if you can please try the latest as it got a lot of love specifically on connect and reconnect scenarios. |
Yesterday I upgraded nuget to 2.2.60 release and today we scheduled a node failover:
maybe there is some additional conf setting for transparent failover |
@NickCraver Unfortunately, the issue is still there with the latest version 2.6.90. Here is the stack trace from a recent exception we have observed, immediately after an automatic fail-over which happened on a cluster running Redis 7.0.5:
Ideally, a dedicated exception could help detecting this kind of issue on the caller side more easily and possibly triggering a cluster nodes map update somehow. Thanks for your hard work on SE.Redis! |
Hi, |
I'm currently testing failover with the latest client version (1.0.481).
When Redis performs a failover (for testing purposes, I'm issuing the "cluster failover" command manually), if I try to make a Write operation, the client throws a
MasterOnly
exception.But on the Redis side, master and slaves have changed.
My setup : a 6 instances redis cluster.
The C# test client :
After issuing the failover command, here are the nodes :
(10.9.28.74:6379 is now a master).
The client catches the exception
Here is the verbose output of the Redis client :
It looks like the client holds a sort of static list of servers with their associated running modes ; which is not updated after a failover.
Thanks for your help.
The text was updated successfully, but these errors were encountered: