<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:53 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-270] If authentication is on for a replica set, then most likely all writes will always fail once primary server dies</title>
                <link>https://jira.mongodb.org/browse/JAVA-270</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;chechAuth is not included within block handling I/O errors of call() or say().&lt;br/&gt;
So the whole logic to switch over master does not apply.&lt;br/&gt;
If auth is on and the master stops responding, master will never switch and all read and write operations will always fail.&lt;br/&gt;
Even if included in the try/catch block, checkauth actually catches IOexception and throws MongoException.Network.&lt;/p&gt;</description>
                <environment></environment>
        <key id="14675">JAVA-270</key>
            <summary>If authentication is on for a replica set, then most likely all writes will always fail once primary server dies</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="antoine">Antoine Girbal</assignee>
                                    <reporter username="antoine">Antoine Girbal</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Feb 2011 21:55:28 +0000</created>
                <updated>Thu, 17 Mar 2011 19:13:55 +0000</updated>
                            <resolved>Fri, 11 Feb 2011 22:36:31 +0000</resolved>
                                                    <fixVersion>2.5</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="24037" author="auto" created="Wed, 16 Feb 2011 17:59:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-270&quot; title=&quot;If authentication is on for a replica set, then most likely all writes will always fail once primary server dies&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-270&quot;&gt;&lt;del&gt;JAVA-270&lt;/del&gt;&lt;/a&gt;: If authentication is on for a replica set, then most likely all writes will always fail once primary server dies&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2c6eb7709f81cd42f73aebf4629344e6f4de7681&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/2c6eb7709f81cd42f73aebf4629344e6f4de7681&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="23725" author="antoine" created="Fri, 11 Feb 2011 22:36:31 +0000"  >&lt;p&gt;Methods implemented at the port level should throw the raw exceptions like IOException, so that the connector above can make appropriate decisions on how to handle.&lt;br/&gt;
The say() and call() method will now switch master correctly upon ioexception on checkauth.&lt;/p&gt;</comment>
                            <comment id="23713" author="antoine" created="Fri, 11 Feb 2011 21:56:30 +0000"  >&lt;p&gt;checkAuth is only called in say() and call().&lt;br/&gt;
Proposed fix:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;include checkAuth in main try/catch block&lt;/li&gt;
	&lt;li&gt;have checkAuth not catch its exceptions internally&lt;/li&gt;
&lt;/ul&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|hrgirz:</customfieldvalue>

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