[CSHARP-1005] MongoServer.Create with ReplicaSetTagSet creates always a new Server Instance Created: 26/Jun/14 Updated: 02/Apr/15 Resolved: 26/Jun/14 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Connectivity |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alice Mauschberger | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
Hi, multiple instances of the same MongoClientSettings with ReplicaSetTagSets specified, leads to the following exception: MongoDB.Driver.ReplicaSetTagSet.GetHashCode() calculates different Hashes for the same Tags. Example Project attached. |
| Comments |
| Comment by Githook User [ 26/Jun/14 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Githook User [ 26/Jun/14 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Craig Wilson [ 26/Jun/14 ] |
|
Thanks Alice. We'll look into this immediately. |
| Comment by Alice Mauschberger [ 26/Jun/14 ] |
|
It seems that MongoDB.Driver.ReadPreference.GetHashCode() -> _tagSets.GetHashCode() is the entry point for this problem. MongoDB.Driver.ReplicaSetTagSet.GetHashCode() is never called in this scenario. |