Should I do something to my code that it won't stop working after the primary goes down
Hi Mohammad,
Please see Retryable writes, which allow drivers to automatically retry certain write operations a single time if they encounter network errors, or if they cannot find a healthy primary in the replica sets or sharded cluster. This feature is available in MongoDB .NET/C# driver v2.5.
Please note that the CSHARP project is for reporting bugs or feature suggestions for the MongoDB .NET/C# driver. If you have any follow-up questions on the use of the driver, please post a question on mongodb-user group with relevant the information.
Regards,
Wan
|