Hi,
I'm trying to use StackExchange.Redis to connect to a Valkey instance via Sentinel. Our organization doesn't allow the user to run the ROLE command, leading to the following line to result in an exception:
|
if (connection.GetServer(newPrimaryEndPoint)?.Role()?.Value == RedisLiterals.master) |
There was an issue in 2023 where a change for this was suggested by @NickCraver: #2461
if (connection.GetServer(newPrimaryEndPoint)?.IsReplica == false)
I tested this change with my configuration and it worked pretty well.
Is there any chance in adding this change after all this time? I would have opened a PR but don't want to take credit for something I didn't come up with.
Hi,
I'm trying to use
StackExchange.Redisto connect to a Valkey instance via Sentinel. Our organization doesn't allow the user to run the ROLE command, leading to the following line to result in an exception:StackExchange.Redis/src/StackExchange.Redis/ConnectionMultiplexer.Sentinel.cs
Line 236 in ae6419a
There was an issue in 2023 where a change for this was suggested by @NickCraver: #2461
I tested this change with my configuration and it worked pretty well.
Is there any chance in adding this change after all this time? I would have opened a PR but don't want to take credit for something I didn't come up with.