<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:56: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-2077] Java Driver may invalidate connectionPool twice for the an exception</title>
                <link>https://jira.mongodb.org/browse/JAVA-2077</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;In &lt;tt&gt;DefaultConnectionPool.java&lt;/tt&gt; a pooled connection invalidate the connection pool by invoking &lt;tt&gt;incrementGenerationAndOnSocketException&lt;/tt&gt; and then propagate it to upper level. Then in &lt;tt&gt;DefaultServer.java&lt;/tt&gt;, &lt;tt&gt;ProtocolExcecutor&lt;/tt&gt; catches the exception and invalidate the connection pool again. I don&apos;t know why it is like that.&lt;/p&gt;</description>
                <environment></environment>
        <key id="246060">JAVA-2077</key>
            <summary>Java Driver may invalidate connectionPool twice for the an exception</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="-1">Unassigned</assignee>
                                    <reporter username="YizeLi">Yize Li [X]</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Jan 2016 03:30:18 +0000</created>
                <updated>Wed, 11 Sep 2019 19:09:26 +0000</updated>
                            <resolved>Sun, 10 Jan 2016 22:34:16 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1130581" author="jeff.yemin" created="Sun, 10 Jan 2016 22:34:16 +0000"  >&lt;p&gt;Thanks for pointing this out, but since it&apos;s not causing any problems I don&apos;t see a reason to change anything. &lt;/p&gt;</comment>
                            <comment id="1130249" author="yizeli" created="Sat, 9 Jan 2016 04:58:34 +0000"  >&lt;p&gt;Hi Jeff,&lt;/p&gt;

&lt;p&gt;I agree. Users could hardly feel the effects. &lt;/p&gt;</comment>
                            <comment id="1129613" author="jeff.yemin" created="Fri, 8 Jan 2016 14:36:15 +0000"  >&lt;p&gt;Hi Yize Li,&lt;/p&gt;

&lt;p&gt;It&apos;s not intentional that it&apos;s like that, but I also don&apos;t think it&apos;s causing any user-visible effects.  Do you agree?&lt;/p&gt;


&lt;p&gt;Regards,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="1129453" author="yizeli" created="Fri, 8 Jan 2016 08:21:13 +0000"  >&lt;p&gt;Hi Ross,&lt;/p&gt;

&lt;p&gt;I checked the source code of master branch and 3.2.x, They are the same in this case. DefaultServerProtocolExecutor invokes handleThrowable in DefaultServer.java when it catches a MongoException and then invokes invalidate if the exception is a SocketException, and PoolConnection in DefaultConnectionPool.java does the same thing by calling incrementGeneartionOnSocketException.&lt;/p&gt;</comment>
                            <comment id="1128388" author="ross@10gen.com" created="Thu, 7 Jan 2016 09:20:32 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=YizeLi&quot; class=&quot;user-hover&quot; rel=&quot;YizeLi&quot;&gt;YizeLi&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the ticket - I copied your comment into the description.&lt;/p&gt;

&lt;p&gt;Can you confirm what version of the driver you are using?&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1128276" author="yizeli" created="Thu, 7 Jan 2016 03:38:20 +0000"  >&lt;p&gt;Sorry for the bad title and the lack of description. My bad.&lt;br/&gt;
In DefaultConnectionPool.java a pooled connection invalidate the connection pool by invoking incrementGenerationAndOnSocketException and then propagate it to upper level. Then in DefaultServer.java, ProtocolExcecutor catches the exception and invalidate the connection&lt;br/&gt;
pool again. I don&apos;t know why it is like that.&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|hsfa33:</customfieldvalue>

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