<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:28 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-951] inconsistent behaviour between java drivers before and after version 2.7.3</title>
                <link>https://jira.mongodb.org/browse/JAVA-951</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;We&apos;ve found an iconsistent behaviour between java drivers before and after version 2.7.3 on a replica set (mongo version 2.2.3 - but doesn&apos;t matter for this issue).&lt;br/&gt;
Before (incl.) v2.7.3 we could read from collection A and write into collection B within the same request even if ReadPreference.SECONDARY was set on the database.&lt;/p&gt;

&lt;p&gt;After v2.7.3 a MongoException is thrown: &quot;not talking to master and retries used up&quot;.&lt;br/&gt;
Our solution is either to set ReadPreference.PRIMARY (either on the database or on the find method) or to close the request and to open a new one for the write request.&lt;/p&gt;

&lt;p&gt;It would be nice if the connection wouldn&apos;t be tied to a mongo node dependant on the &lt;b&gt;first&lt;/b&gt; request, because it&apos;s very hard to find the cause of the above mentioned error (imagine a much more complex business logic, which we have nailed down to one well isolated test case). It would be smarter when Mongo could automatically decide to connect to the master when a write request comes in even when ReadPreference.SECONDARY is set and return to a secondary for further read requests.&lt;/p&gt;

&lt;p&gt;Please see attached our test class to reproduce the issue.&lt;/p&gt;</description>
                <environment></environment>
        <key id="90912">JAVA-951</key>
            <summary>inconsistent behaviour between java drivers before and after version 2.7.3</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kay.agahd@idealo.de">Kay Agahd</reporter>
                        <labels>
                            <label>master</label>
                            <label>query</label>
                            <label>read-preferences</label>
                            <label>replicaset</label>
                            <label>slaveOk</label>
                    </labels>
                <created>Fri, 20 Sep 2013 13:50:33 +0000</created>
                <updated>Tue, 23 Jun 2015 15:27:34 +0000</updated>
                            <resolved>Tue, 23 Jun 2015 15:27:34 +0000</resolved>
                                                                    <component>Session Management</component>
                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="948160" author="jeff.yemin" created="Tue, 23 Jun 2015 15:27:34 +0000"  >&lt;p&gt;DB.requestStart/requestDone were deprecated in 2.12 and removed in 3.0, so this no longer applies.&lt;/p&gt;</comment>
                            <comment id="429029" author="kay.agahd@idealo.de" created="Fri, 20 Sep 2013 14:02:52 +0000"  >&lt;p&gt;deleted two superfluous lines of code&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="31619" name="DriverTest.java" size="3303" author="kay.agahd@idealo.de" created="Fri, 20 Sep 2013 14:02:52 +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|hrt0r3:</customfieldvalue>

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