Skip to content

Commit d4649d9

Browse files
committed
Retry on more exceptions in SqlServerMessageStore's append-method
1 parent 7876573 commit d4649d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Stores/SqlServer/Cleipnir.ResilientFunctions.SqlServer/SqlServerMessageStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ INSERT INTO {tablePrefix}_Messages
7171
}
7272
catch (SqlException e)
7373
{
74-
if (depth == 10 || e.Number != SqlError.DEADLOCK_VICTIM)
74+
if (depth == 10 || (e.Number != SqlError.DEADLOCK_VICTIM && e.Number != SqlError.UNIQUENESS_VIOLATION))
7575
throw;
7676

7777
// ReSharper disable once DisposeOnUsingVariable

0 commit comments

Comments
 (0)