<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:31 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>[JAVA-531] Driver allows connection to multiple replica sets without any errors or warnings</title>
                <link>https://jira.mongodb.org/browse/JAVA-531</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The driver allows a connection string with a number of hosts, but the hosts can belong to multiple replica sets.&lt;br/&gt;
eg. host1,host2,host3,host4,host5,host6  where 1-4 were one replica set (2 being primary) and 5-6 another replica set, with a different name, and 5 being this sets primary.&lt;/p&gt;

&lt;p&gt;The situation occurred when we used two nodes to create another replica set, but failed to change the connection string.&lt;/p&gt;

&lt;p&gt;No error&apos;s were reported by the driver, instead strange application behaviour was experienced as sometimes nodes 5 and 6 were queried, but contained no relevant data.&lt;/p&gt;

&lt;p&gt;I know there is a replicaSet option, which I believe causing more checking, but I would think that the default behaviour would be to check that all hosts were in the same replica sets, and to only be able to see one primary.&lt;/p&gt;</description>
                <environment>Centos on AWS</environment>
        <key id="32418">JAVA-531</key>
            <summary>Driver allows connection to multiple replica sets without any errors or warnings</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="steve.briskin">Steve Briskin</assignee>
                                    <reporter username="mmiller@equalexperts.com">Mark Miller</reporter>
                        <labels>
                            <label>replicaset</label>
                    </labels>
                <created>Wed, 7 Mar 2012 12:42:19 +0000</created>
                <updated>Wed, 29 Aug 2012 20:08:03 +0000</updated>
                            <resolved>Tue, 24 Jul 2012 15:36:24 +0000</resolved>
                                    <version>2.6.5</version>
                                    <fixVersion>2.9.0</fixVersion>
                                    <component>Cluster Management</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="158203" author="jeff.yemin" created="Wed, 29 Aug 2012 20:08:03 +0000"  >&lt;p&gt;Closing as part of 2.9.0 release process.&lt;/p&gt;</comment>
                            <comment id="146623" author="auto" created="Tue, 24 Jul 2012 15:35:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-24T08:21:18-07:00&apos;, u&apos;name&apos;: u&apos;Steve Briskin&apos;, u&apos;email&apos;: u&apos;steve.briskin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-531&quot; title=&quot;Driver allows connection to multiple replica sets without any errors or warnings&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-531&quot;&gt;&lt;del&gt;JAVA-531&lt;/del&gt;&lt;/a&gt;: minor refactoring&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/c0f92ff6f5f251f95677c5e800b83ad987f5879f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/c0f92ff6f5f251f95677c5e800b83ad987f5879f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="146622" author="auto" created="Tue, 24 Jul 2012 15:35:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-23T11:52:09-07:00&apos;, u&apos;email&apos;: u&apos;steve.briskin@10gen.com&apos;, u&apos;name&apos;: u&apos;Steve Briskin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-531&quot; title=&quot;Driver allows connection to multiple replica sets without any errors or warnings&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-531&quot;&gt;&lt;del&gt;JAVA-531&lt;/del&gt;&lt;/a&gt;: throw an exception if Mongo connects to replica sets with different names&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/3b6fc9fb563ed3d0d0abf9ef284bdd9bd91e1089&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/3b6fc9fb563ed3d0d0abf9ef284bdd9bd91e1089&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="96367" author="mmiller@equalexperts.com" created="Wed, 7 Mar 2012 14:52:26 +0000"  >&lt;p&gt;mongod -version is db version v2.0.0, pdfile version 4.5&lt;/p&gt;</comment>
                            <comment id="96333" author="scotthernandez" created="Wed, 7 Mar 2012 13:36:42 +0000"  >&lt;p&gt;What server version are you using?&lt;/p&gt;</comment>
                            <comment id="96313" author="jeff.yemin" created="Wed, 7 Mar 2012 12:51:45 +0000"  >&lt;p&gt;Do you see any SEVERE logging lines containing the string &quot;mis match set name old:&quot;?  That would show that the driver is at least detecting the problem.&lt;/p&gt;

&lt;p&gt;But looking at the code, it looks like it won&apos;t stop the driver from preceding despite detecting the problem.  We should fix this.&lt;/p&gt;
</comment>
                    </comments>
                    <attachments>
                    </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|hrghmf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9793</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>