<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:15 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-861] query being routed to recovering node when read_preference is secondary</title>
                <link>https://jira.mongodb.org/browse/JAVA-861</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When adding two mongo instances (2.4.2) to a replicate set containing two existing mongo instances (2.2.2) the following exception happened when adding to new instances to the replicate set:&lt;/p&gt;

&lt;p&gt;Uncaught exception.com.mongodb.CommandResult$CommandFailure: command failed &lt;span class=&quot;error&quot;&gt;&amp;#91;count&amp;#93;&lt;/span&gt;: &lt;/p&gt;
{ &quot;serverUsed&quot; : &quot;production4/172.16.25.200:27017&quot; , &quot;note&quot; : &quot;from execCommand&quot; , &quot;ok&quot; : 0.0 , &quot;errmsg&quot; : &quot;node is recovering&quot;}
&lt;p&gt;at com.mongodb.CommandResult.getException(CommandResult.java:88) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;mongo-java-driver-2.9.1.jar:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
at com.mongodb.CommandResult.throwOnError(CommandResult.java:134) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;mongo-java-driver-2.9.1.jar:na&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;This seems to be the same issue as reported for the python driver here: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7977&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-7977&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After this failure we first upgraded all the nodes to 2.4.2 and added the members to the replSet after the upgrade. This did work successfully. The bug &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7977&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-7977&lt;/a&gt; was reported to be actually a python driver bug but the fact that an upgrade to 2.4.2 solved the bug makes me wonder...&lt;/p&gt;</description>
                <environment></environment>
        <key id="80572">JAVA-861</key>
            <summary>query being routed to recovering node when read_preference is secondary</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="dom@evrythng.com">Dominique Guinard</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Jun 2013 18:48:22 +0000</created>
                <updated>Tue, 2 Jul 2013 13:28:38 +0000</updated>
                            <resolved>Tue, 2 Jul 2013 13:28:38 +0000</resolved>
                                    <version>2.9.1</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="372454" author="jeff.yemin" created="Tue, 2 Jul 2013 13:28:38 +0000"  >&lt;p&gt;Please try with 2.11.x and re-open if you still see it with that version.&lt;/p&gt;</comment>
                            <comment id="372453" author="jeff.yemin" created="Tue, 2 Jul 2013 13:27:26 +0000"  >&lt;p&gt;This was fixed in 2.11.0: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-753&quot; title=&quot;Java Driver sending reads with NEAREST preference to nodes in RECOVERING state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-753&quot;&gt;&lt;del&gt;JAVA-753&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="369558" author="jeff.yemin" created="Fri, 28 Jun 2013 00:01:57 +0000"  >&lt;p&gt;Also, have you tried this with a newer version of the driver?  2.9.1 is rather old, and has a serious bug so you should at minimum upgrade to 2.9.3.&lt;/p&gt;</comment>
                            <comment id="369557" author="jeff.yemin" created="Fri, 28 Jun 2013 00:00:59 +0000"  >&lt;p&gt;Can you post the full stack trace please?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="64467">JAVA-753</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="60094">PYTHON-454</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hrrdxz:</customfieldvalue>

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