Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1005

MongoServer.Create with ReplicaSetTagSet creates always a new Server Instance

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.2
    • Affects Version/s: None
    • Component/s: Connectivity
    • None

      Hi,

      multiple instances of the same MongoClientSettings with ReplicaSetTagSets specified, leads to the following exception:
      "MongoServer.Create has already created 100 servers which is the maximum number of servers allowed."

      MongoDB.Driver.ReplicaSetTagSet.GetHashCode() calculates different Hashes for the same Tags.

      Example Project attached.
      thx

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            mac866 Alice Mauschberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: