<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:55:33 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-1806] Regression on Mongo.getReplicateStatus().getMaster()</title>
                <link>https://jira.mongodb.org/browse/JAVA-1806</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;We migrated the Java driver version from 2.11.1 to 2.13 and a call to &lt;tt&gt;Mongo.getReplicateStatus().getMaster()&lt;/tt&gt; does not return the ServerAddress anymore; instead we get null.&lt;/p&gt;

&lt;p&gt;This happens on MongoDB 2.6 with the Java driver version 2.13. Our client is configured like so:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;MongoClientOptions{description=&apos;null&apos;, connectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, maxWaitTime=12000, connectTimeout=10000, socketTimeout=0, socketKeepAlive=false, autoConnectRetry=false, maxAutoConnectRetryTime=0, readPreference=primary, dbDecoderFactory=DefaultDBDecoder.DefaultFactory, dbEncoderFactory=DefaultDBEncoder.DefaultFactory, writeConcern=WriteConcern { &quot;getlasterror&quot; : 1} / (Continue on error? false), socketFactory=javax.net.DefaultSocketFactory@5efe3dfe, cursorFinalizerEnabled=true, alwaysUseMBeans=false, heartbeatFrequency=5000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, heartbeatThreadCount=0, localThreshold=15, requiredReplicaSetName=null}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="202943">JAVA-1806</key>
            <summary>Regression on Mongo.getReplicateStatus().getMaster()</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="lucboudreau">Luc Boudreau</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 May 2015 14:32:13 +0000</created>
                <updated>Tue, 23 Jun 2015 02:23:05 +0000</updated>
                            <resolved>Tue, 23 Jun 2015 02:23:05 +0000</resolved>
                                    <version>2.13.0</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="947675" author="jeff.yemin" created="Tue, 23 Jun 2015 02:23:05 +0000"  >&lt;p&gt;As we haven&apos;t heard back from you in some time, I&apos;m going to close this issue, but if you have any more information I&apos;m happy to re-open it.&lt;/p&gt;</comment>
                            <comment id="910497" author="jeff.yemin" created="Mon, 11 May 2015 20:38:22 +0000"  >&lt;p&gt;Hi Luc, in addition to what you provided, please also let us know which MongoClient constructor the application is calling and what arguments are being passed to it (besides the MongoClientOptions, which you already provided).  &lt;/p&gt;</comment>
                            <comment id="910440" author="lucboudreau" created="Mon, 11 May 2015 20:03:06 +0000"  >&lt;p&gt;Ross, one of our guys has tried the option requiredReplicaSetName and has reported the following.&lt;/p&gt;

&lt;p&gt;-------&lt;/p&gt;

&lt;p&gt;I was able to populate that option, still got the same issue.  The value I used is rs0 which &lt;span class=&quot;error&quot;&gt;&amp;#91;the systems admin&amp;#93;&lt;/span&gt; gave to me.  I get a different connection error if I set it to something else, so I have high confidence that rs0 is the correct value.&lt;/p&gt;</comment>
                            <comment id="908962" author="lucboudreau" created="Fri, 8 May 2015 18:34:38 +0000"  >&lt;p&gt;Attached are the configuration options we use on the cluster side, along with a status printout. I&apos;m not sure if that&apos;s what you need, so let me know if not and one of our team will look into providing the required infos.&lt;/p&gt;</comment>
                            <comment id="908790" author="ross@10gen.com" created="Fri, 8 May 2015 15:51:27 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lucboudreau&quot; class=&quot;user-hover&quot; rel=&quot;lucboudreau&quot;&gt;lucboudreau&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From your &lt;tt&gt;MongoClientOptions&lt;/tt&gt; you have &lt;tt&gt;requiredReplicaSetName=null&lt;/tt&gt; can you confirm you have connected to a replicaSet and provided the &lt;tt&gt;replicaSetName&lt;/tt&gt; and that you are not directly connecting to a single node?&lt;/p&gt;

&lt;p&gt;Also from the API docs &lt;tt&gt;getMaster()&lt;/tt&gt; returns the &lt;tt&gt;ServerAddress&lt;/tt&gt; of master or &lt;b&gt;null&lt;/b&gt; if theres no current master.  This is the same behaviour as in 2.11.x&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="73588" name="MongoDB26RsConf.txt" size="3033" author="lucboudreau" created="Fri, 8 May 2015 18:34:38 +0000"/>
                            <attachment id="73589" name="MongoDB26RsStatus.txt" size="3674" author="lucboudreau" created="Fri, 8 May 2015 18:34:38 +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|hs95uv:</customfieldvalue>

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