-
Type:
Bug
-
Resolution: Gone away
-
Priority:
Blocker - P1
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Summary
When I upgraded to the MongoDB.Driver 3.0.0, I couldn't connect to the replica set cluster(ver: 8.0.1) I created locally using Docker. Upon discovering another user facing this issue and raising with your team, I implemented the suggested fix of specifying directConnection=true in the connection string.
This solved the issue locally. We use mongodb in our gitlab pipeline as part of our tests, and when running in our Linux gitlab runner, we get the error:
"MongoDB.Driver.MongoNotPrimaryException : Server returned not primary error."
This issue doesn't occur locally with the same configuration.
Related issue: https://jira.mongodb.org/browse/CSHARP-5337
How to Reproduce
Steps to reproduce. If possible, please include a Short, Self Contained, Correct (Compilable), Example.
Additional Background
Please provide any additional background information that may be helpful in diagnosing the bug.
- backported by
-
CSHARP-5337 3.0 Connect Server Exception
-
- Closed
-