<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:39 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-596] In case of replica set members which are located in different data center, are reads from the java driver will be data center aware? </title>
                <link>https://jira.mongodb.org/browse/JAVA-596</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;One of our projects using replica sets which will be deployed across 2 data centers. Our plan is to use slaves in both data centers to serve reads. We are ok to write across datacenter but reads need to be served locally.&lt;br/&gt;
When we connect to mongo db from the App server which is in data center1 we expect the read request should go to the mongod which is running in the same data center. How we can ensure it happens, how java driver reroute the read request to available member of the replica set?&lt;/p&gt;

&lt;p&gt;We have set slveOk = true in our application.&lt;/p&gt;</description>
                <environment></environment>
        <key id="43301">JAVA-596</key>
            <summary>In case of replica set members which are located in different data center, are reads from the java driver will be data center aware? </summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="vineetsaini">Vineet Saini</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Tue, 3 Jul 2012 19:16:27 +0000</created>
                <updated>Wed, 11 Sep 2019 19:13:02 +0000</updated>
                            <resolved>Tue, 3 Jul 2012 19:28:41 +0000</resolved>
                                    <version>2.0</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="139248" author="scotthernandez" created="Tue, 3 Jul 2012 19:28:41 +0000"  >&lt;p&gt;The java driver will connect to the closest replica, when using slaveOk/ReadPreference.Secondary, so queries will stay in the local datacenter. All writes must go to the primary in whichever DC it is in.&lt;/p&gt;</comment>
                    </comments>
                    <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|hrhb1b:</customfieldvalue>

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