<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:55 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-284] Support replica set name in MongoClientURI and MongoClientOptions</title>
                <link>https://jira.mongodb.org/browse/JAVA-284</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;As in other drivers, the name of the query parameter in the URI is replicaSet.  In MongoClientOptions, the slightly more descriptive property name of requiredReplicaSetName will be used.  The presence of the replica set name in either place will have two effects:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;it will force the driver into replica-set mode, which means that even if there is only one member provided in the seed list, the driver will treat this as a replica set connection and discover all members (even so, users are still highly encouraged to provide at least a three member seed list).&lt;/li&gt;
	&lt;li&gt;the driver will drop seed list members that are either not replica set members or else members of a replica set with a different name.  This will be logged as SEVERE.&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="14897">JAVA-284</key>
            <summary>Support replica set name in MongoClientURI and MongoClientOptions</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="brendan">Brendan W. McAdams</reporter>
                        <labels>
                            <label>rc1</label>
                    </labels>
                <created>Fri, 25 Feb 2011 19:55:16 +0000</created>
                <updated>Fri, 30 Jan 2015 18:37:07 +0000</updated>
                            <resolved>Thu, 27 Feb 2014 20:53:38 +0000</resolved>
                                    <version>2.5</version>
                                    <fixVersion>2.12.0</fixVersion>
                    <fixVersion>3.0.0</fixVersion>
                                    <component>Configuration</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="817696" author="xgen-internal-githook" created="Fri, 30 Jan 2015 18:37:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-284&quot; title=&quot;Support replica set name in MongoClientURI and MongoClientOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-284&quot;&gt;&lt;del&gt;JAVA-284&lt;/del&gt;&lt;/a&gt;: Adding requiredReplicaSetName property in MongoOptions&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/9d120bf66eedeab31b51eff5a83f6ef8b876dc39&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/9d120bf66eedeab31b51eff5a83f6ef8b876dc39&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="566935" author="xgen-internal-githook" created="Tue, 29 Apr 2014 15:14:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-284&quot; title=&quot;Support replica set name in MongoClientURI and MongoClientOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-284&quot;&gt;&lt;del&gt;JAVA-284&lt;/del&gt;&lt;/a&gt;: Adding requiredReplicaSetName property in MongoOptions&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/9d120bf66eedeab31b51eff5a83f6ef8b876dc39&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/9d120bf66eedeab31b51eff5a83f6ef8b876dc39&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="506665" author="jeff.yemin" created="Thu, 27 Feb 2014 20:53:38 +0000"  >&lt;p&gt;Fixed in master for 2.12.0&lt;/p&gt;</comment>
                            <comment id="506659" author="xgen-internal-githook" created="Thu, 27 Feb 2014 20:51:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-284&quot; title=&quot;Support replica set name in MongoClientURI and MongoClientOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-284&quot;&gt;&lt;del&gt;JAVA-284&lt;/del&gt;&lt;/a&gt;: Support replica set name in MongoClientURI and MongoClientOptions&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/9bb0f73d3f6702029657d3901c95a155dc79cab1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/9bb0f73d3f6702029657d3901c95a155dc79cab1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="412905" author="auto" created="Wed, 28 Aug 2013 05:54:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-284&quot; title=&quot;Support replica set name in MongoClientURI and MongoClientOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-284&quot;&gt;&lt;del&gt;JAVA-284&lt;/del&gt;&lt;/a&gt;: Support replicaSet option in URI and requiredReplicaSetName is MongoClientOptions&lt;br/&gt;
Branch: 3.0.x-refactor-operations&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/dfc5284153bfb537de0b678ed9ddbc5d606a57c4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/dfc5284153bfb537de0b678ed9ddbc5d606a57c4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="410043" author="auto" created="Fri, 23 Aug 2013 16:03:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-284&quot; title=&quot;Support replica set name in MongoClientURI and MongoClientOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-284&quot;&gt;&lt;del&gt;JAVA-284&lt;/del&gt;&lt;/a&gt;: Refactoring ClusterFactory and Cluster implementations to take a ClusterSettings instead of just the list of server addresses.&lt;br/&gt;
This allows passing of additional required settings, like cluster mode and required replica set name.&lt;br/&gt;
Ensure that the replica set that the cluster connects to has a name than matches the specified required replica set name.&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/d598f4219046c15a1a5df708d0a278030aaeccea&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/d598f4219046c15a1a5df708d0a278030aaeccea&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="410042" author="auto" created="Fri, 23 Aug 2013 16:03:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-284&quot; title=&quot;Support replica set name in MongoClientURI and MongoClientOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-284&quot;&gt;&lt;del&gt;JAVA-284&lt;/del&gt;&lt;/a&gt;: Support replicaSet option in URI and requiredReplicaSetName is MongoClientOptions&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/dfc5284153bfb537de0b678ed9ddbc5d606a57c4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/dfc5284153bfb537de0b678ed9ddbc5d606a57c4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="270639" author="drevicko" created="Wed, 20 Feb 2013 02:41:19 +0000"  >&lt;p&gt;fyi: in 2.10.1 MongoClientURI(String uri) currently reports &quot;Unknown or Unsupported Option &apos;replicaset&apos;&quot; if that option is present.&lt;/p&gt;</comment>
                            <comment id="112223" author="dampier" created="Sat, 21 Apr 2012 04:03:35 +0000"  >&lt;p&gt;Partial fix offered here:  &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/72&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As of this writing, that pull request doesn&apos;t verify the name once connected, but does correctly parse the option and force a replica set (not single-server) connection.&lt;/p&gt;

&lt;p&gt;Also:  is the &quot;connect&quot; option still part of the URI spec?  I don&apos;t see it mentioned in &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Connections&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Connections&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is there a more definitive document?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="14100">JAVA-244</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hrhcfr:</customfieldvalue>

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