<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:25 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-1005] MongoServer.Create with ReplicaSetTagSet creates always a new Server Instance</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1005</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;multiple instances of the same MongoClientSettings with ReplicaSetTagSets specified, leads to the following exception:&lt;br/&gt;
&quot;MongoServer.Create has already created 100 servers which is the maximum number of servers allowed.&quot;&lt;/p&gt;

&lt;p&gt;MongoDB.Driver.ReplicaSetTagSet.GetHashCode() calculates different Hashes for the same Tags.&lt;/p&gt;

&lt;p&gt;Example Project attached.&lt;br/&gt;
thx&lt;/p&gt;</description>
                <environment></environment>
        <key id="144071">CSHARP-1005</key>
            <summary>MongoServer.Create with ReplicaSetTagSet creates always a new Server Instance</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="mac866">Alice Mauschberger</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Jun 2014 12:30:41 +0000</created>
                <updated>Thu, 2 Apr 2015 18:28:09 +0000</updated>
                            <resolved>Thu, 26 Jun 2014 18:41:52 +0000</resolved>
                                                    <fixVersion>1.9.2</fixVersion>
                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="635295" author="xgen-internal-githook" created="Thu, 26 Jun 2014 18:41:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;craiggwilson&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1005&quot; title=&quot;MongoServer.Create with ReplicaSetTagSet creates always a new Server Instance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1005&quot;&gt;&lt;del&gt;CSHARP-1005&lt;/del&gt;&lt;/a&gt;: Fix ReadPreference to provide correct GetHashCode() values.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/b45945ed82066e61b49582704e10ad0530625243&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/b45945ed82066e61b49582704e10ad0530625243&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="635283" author="xgen-internal-githook" created="Thu, 26 Jun 2014 18:33:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;craiggwilson&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1005&quot; title=&quot;MongoServer.Create with ReplicaSetTagSet creates always a new Server Instance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1005&quot;&gt;&lt;del&gt;CSHARP-1005&lt;/del&gt;&lt;/a&gt;: Fix ReadPreference to provide correct GetHashCode() values.&lt;br/&gt;
Branch: v1.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/a42ede2f8bb99afaae0a65b14f951d92ce0df0bc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/a42ede2f8bb99afaae0a65b14f951d92ce0df0bc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="634853" author="craiggwilson" created="Thu, 26 Jun 2014 13:52:23 +0000"  >&lt;p&gt;Thanks Alice. We&apos;ll look into this immediately.&lt;/p&gt;</comment>
                            <comment id="634843" author="mac866" created="Thu, 26 Jun 2014 13:45:30 +0000"  >&lt;p&gt;It seems that MongoDB.Driver.ReadPreference.GetHashCode() -&amp;gt; _tagSets.GetHashCode() is the entry point for this problem. MongoDB.Driver.ReplicaSetTagSet.GetHashCode() is never called in this scenario.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="46448" name="TagSets_Example.zip" size="4250" author="mac866" created="Thu, 26 Jun 2014 12:30:41 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs00zj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>124556</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="204">Sprint 4</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>