[CSHARP-2245] Driver version 2.5.0 is failing to connect to a hidden replica set member. Created: 19/Apr/18 Updated: 19/Apr/18 Resolved: 19/Apr/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 2.5 |
| Fix Version/s: | 2.5.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Wan Bachtiar | Assignee: | Robert Stam |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
MongoDB C# driver version 2.5.0 failed to connect to a hidden replica set member with the following code:
The same code works for version 2.4.x (Tested on 2.4.4 and 2.4.2). |
| Comments |
| Comment by Robert Stam [ 19/Apr/18 ] |
|
Thank you for confirming the fix. |
| Comment by Wan Bachtiar [ 19/Apr/18 ] |
|
Confirmed, 2.5.1 fixed the issue. Thanks you rstam |
| Comment by Robert Stam [ 19/Apr/18 ] |
|
I believe that while the scenario is slightly different it shares the same underlying cause as |
| Comment by Wan Bachtiar [ 19/Apr/18 ] |
|
Briefly, it looks like version 2.5.0 introduced a change for session to detect IsDataBearingServer ServerDescription.cs#L205-227 |