<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:59:01 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-3197] Non Blocking Secondary Reads with 4.0</title>
                <link>https://jira.mongodb.org/browse/JAVA-3197</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I have questions about the non-blocking secondary reads with MongoDB 4.0+&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;We have a primary and 3 secondaries. When we set the read preference as &quot;secondaryPreferred&quot;, does the client choose only one secondary amongst the 3 secondaries and direct its reads to that secondary? Or does it load balance across 2ndaries?&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;I am seeing read requests coming into one secondary even when I leave the read preference as default i.e. Primary. I see the same behavior when I set the read preference as 2ndar preferred. I have attached screenshot of the document metrics and OpCounter stats (from Ops Mgr) when we have the default primary read pref. Does it make sense? Or am I doing something incorrect?&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment>RHEL 7.4 Enterprise MongoDB</environment>
        <key id="687566">JAVA-3197</key>
            <summary>Non Blocking Secondary Reads with 4.0</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="-1">Unassigned</assignee>
                                    <reporter username="satish.anupindi@aexp.com">Satish Anupindi</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Feb 2019 16:36:30 +0000</created>
                <updated>Wed, 11 Sep 2019 19:14:46 +0000</updated>
                            <resolved>Fri, 15 Feb 2019 12:40:09 +0000</resolved>
                                                                    <component>Query Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2153046" author="jeff.yemin" created="Fri, 15 Feb 2019 12:39:45 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=satish.anupindi%40aexp.com&quot; class=&quot;user-hover&quot; rel=&quot;satish.anupindi@aexp.com&quot;&gt;satish.anupindi@aexp.com&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;The driver load balances all available secondaries. If no secondaries are available, it directs all requests to the primary.&lt;/li&gt;
	&lt;li&gt;It&apos;s possible that it&apos;s a driver bug, but if so this would be the first report. A few things to check:
	&lt;ol&gt;
		&lt;li&gt;Enable DEBUG logging in the driver for the &lt;tt&gt;org.mongodb.driver.protocol&lt;/tt&gt; component.&#160; That will log messages like: &quot;Sending command &apos;%s&apos; with request id %d to database %s on connection &lt;span class=&quot;error&quot;&gt;&amp;#91;%s&amp;#93;&lt;/span&gt; to server %s&quot; so you can see where requests are being routed&lt;/li&gt;
		&lt;li&gt;Check the server logs to see where requests are actually originating.&lt;/li&gt;
		&lt;li&gt;Check your MongoClient settings to make sure you&apos;re not accidentally leaving the read preference as non-primary.&#160; Note also that the read preference can be change per MongoCollection or MongoDatabase, so it&apos;s possible that the primary read preference is being overridden somewhere else in your application.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Just to let you know this project is for Java driver bugs or feature requests. The best place for questions regarding MongoDB usage or the Java driver specifics is the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user mailing list&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stackoverflow&lt;/a&gt; as you will reach a broader audience there. If your business requires an answer from MongoDB within a time frame then we do offer &lt;a href=&quot;https://www.mongodb.com/products/production-support&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;production support&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you do follow up via one of the options above please post a link and I will follow the conversation there.&lt;/p&gt;</comment>
                            <comment id="2144504" author="satish.anupindi@aexp.com" created="Mon, 11 Feb 2019 16:37:56 +0000"  >&lt;p&gt;Check the OP counter and doc metrics on &lt;a href=&quot;http://mrerh7mongodb2.phx.lab.aexp.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mrerh7mongodb2.phx.lab.aexp.com&lt;/a&gt;. This is when having default primary read preference&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="208689" name="Screen Shot 2019-02-08 at 1.18.13 PM.png" size="420551" author="satish.anupindi@aexp.com" created="Mon, 11 Feb 2019 16:36:18 +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|hubopb:</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>