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

Fix for #1520: Add support for retry on transactions for resharding #2062

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Updating Test Case with new RedisHashslotMigratedAndNoRedirectException
  • Loading branch information
Dustin Durand authored and Dustin Durand committed Apr 3, 2022
commit e9525e003188de4547f4fce95743d95bf10f3125
2 changes: 1 addition & 1 deletion tests/StackExchange.Redis.Tests/Cluster.cs
Original file line number Diff line number Diff line change
@@ -171,7 +171,7 @@ static string StringGet(IServer server, RedisKey key, CommandFlags flags = Comma
string b = StringGet(conn.GetServer(node.EndPoint), key);
Assert.Equal(value, b); // wrong primary, allow redirect

var ex = Assert.Throws<RedisServerException>(() => StringGet(conn.GetServer(node.EndPoint), key, CommandFlags.NoRedirect));
var ex = Assert.Throws<RedisHashslotMigratedAndNoRedirectException>(() => StringGet(conn.GetServer(node.EndPoint), key, CommandFlags.NoRedirect));
Assert.StartsWith($"Key has MOVED to Endpoint {rightPrimaryNode.EndPoint} and hashslot {slot}", ex.Message);
}