<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:02 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-335] all connections to a server should get closed under certain types of exception</title>
                <link>https://jira.mongodb.org/browse/JAVA-335</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Ryan reported seeing write exceptions to primary after bouncing both mongod servers.&lt;br/&gt;
I think the reason why you still get an exception from the primary is because we do not clean up all connections upon 1 failure.&lt;br/&gt;
Say you take down primary, 1 write may fail to it and make driver switch to the secondary (new primary).&lt;br/&gt;
All the connections to the old primary are dead but not marked as such.&lt;br/&gt;
When eventually driver switches back to 1st primary, it will use dead connections and that will make some write fail.&lt;br/&gt;
Usually dead connections are cleaned up quickly by reads since they retry 2 times.&lt;br/&gt;
I think we should close all connections to a host in case of certain exceptions (RST) AND a new master is elected, to avoid these errors.&lt;br/&gt;
There is a function in driver that does it but it&apos;s not wired in.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16230">JAVA-335</key>
            <summary>all connections to a server should get closed under certain types of exception</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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>Thu, 21 Apr 2011 15:53:58 +0000</created>
                <updated>Tue, 14 Jun 2011 03:39:31 +0000</updated>
                            <resolved>Fri, 27 May 2011 07:13:52 +0000</resolved>
                                                    <fixVersion>2.6</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="34751" author="antoine" created="Fri, 27 May 2011 07:13:52 +0000"  >&lt;p&gt;resolved but still need to test&lt;/p&gt;</comment>
                            <comment id="34697" author="auto" created="Fri, 27 May 2011 00:34:59 +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-335&quot; title=&quot;all connections to a server should get closed under certain types of exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-335&quot;&gt;&lt;del&gt;JAVA-335&lt;/del&gt;&lt;/a&gt;: all connections to a server should get closed under certain types of exception&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/8eaa84a89f180c6346b4a509a6b73078a59f9a26&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/8eaa84a89f180c6346b4a509a6b73078a59f9a26&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="14974">JAVA-290</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hrhc73:</customfieldvalue>

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