[CSHARP-2229] Retryable writes should consider more errors retryable Created: 29/Mar/18  Updated: 28/Oct/23  Resolved: 11/Apr/18

Status: Closed
Project: C# Driver
Component/s: Operations
Affects Version/s: 2.5
Fix Version/s: 2.5.1

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-467 More errors must should be considered... Closed

 Description   

Retryable writes currently consider only the following exceptions to be retryable:

MongoConnectionException
MongoNotPrimaryException
MongoNodeIsRecoveringException

The following MongoCommandException error codes should be considered retryable also:

InterruptedAtShutdown
InterruptedDueToReplStateChange
NotMaster
NotMasterNoSlaveOk
NotMasterOrSecondary
PrimarySteppedDown
ShutdownInProgress
WriteConcernFailed
HostNotFound
HostUnreachable
NetworkTimeout
SocketException

The numeric values for those error codes can be found here:

https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err

ChangeStreamCursors should also automatically resume the change stream when any of the above error codes are encountered.



 Comments   
Comment by Githook User [ 11/Apr/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2229: Simplified test in IsResumableChangeStreamException method.
Branch: v2.5.x
https://github.com/mongodb/mongo-csharp-driver/commit/8b334da2a85157596112c31bcdcbe436ee42b5be

Comment by Githook User [ 11/Apr/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2229: Changes to reflect latest spec changes.
Branch: v2.5.x
https://github.com/mongodb/mongo-csharp-driver/commit/4f792ce6b4ec78447371f7ff146c8efc5624ce27

Comment by Githook User [ 11/Apr/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2229: Added RetryabilityHelper
Branch: v2.5.x
https://github.com/mongodb/mongo-csharp-driver/commit/d58646b0115fe3be29e74670c672785521262088

Comment by Githook User [ 11/Apr/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2229: Retryable writes should consider more errors retryable
Branch: v2.5.x
https://github.com/mongodb/mongo-csharp-driver/commit/559a1ad3c53585ff93b5e384e97a1197e29b2d25

Comment by Githook User [ 11/Apr/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2229: Simplified test in IsResumableChangeStreamException method.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/7b826e7a063113f0220b464d069815b20953ec5d

Comment by Githook User [ 11/Apr/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2229: Changes to reflect latest spec changes.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/39b35728e44dbbc0d2b7d276ba02bab16b4247a0

Comment by Githook User [ 11/Apr/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2229: Added RetryabilityHelper
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/d250d9f4d42943c483a62c3a5978fd01ca7e4aab

Comment by Githook User [ 11/Apr/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2229: Retryable writes should consider more errors retryable
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/d29c7822ef0e93fe2e2cb9b13441b46bccc72a59

Generated at Wed Feb 07 21:41:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.