<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:14 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-2859] Running shutdown command throws a MongoTimeoutException</title>
                <link>https://jira.mongodb.org/browse/JAVA-2859</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;DB adminDB = DbUtils.getDB(_mongo, &quot;admin&quot;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;adminDB.command(&quot;shutdown&quot;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Running the above code against MongoDB 3.4 yields a &lt;tt&gt;MongoSocketReadException&lt;/tt&gt;&lt;br/&gt;
Running the same code against MongoDB 3.6 yields a blocking 30 second &lt;tt&gt;MongoTimeoutException&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="542809">JAVA-2859</key>
            <summary>Running shutdown command throws a MongoTimeoutException</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="13201">Fixed</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="peter.garafano@mongodb.com">Peter Garafano</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 May 2018 20:38:57 +0000</created>
                <updated>Sat, 28 Oct 2023 11:22:50 +0000</updated>
                            <resolved>Tue, 29 May 2018 13:14:06 +0000</resolved>
                                                    <fixVersion>3.6.4</fixVersion>
                    <fixVersion>3.7.1</fixVersion>
                                    <component>Session Management</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1903031" author="xgen-internal-githook" created="Tue, 29 May 2018 11:41:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Remove extra server session pool&lt;/p&gt;

&lt;p&gt;Now that the extra server session pool is gone, it exposed an error&lt;br/&gt;
in a ClientSession test which creates two client sessions in a Spock&lt;br/&gt;
where clause.  Since both sessions are created by Spock in advance of&lt;br/&gt;
the test executions, it means that the cleanup check for in-use sessions&lt;br/&gt;
triggers after the first test execution completes and asserts that&lt;br/&gt;
there is one in-use session.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/7aa4c8dcb184b4c7df770cac8ad556c9b57bbd72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/7aa4c8dcb184b4c7df770cac8ad556c9b57bbd72&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1902947" author="xgen-internal-githook" created="Tue, 29 May 2018 00:47:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Don&apos;t block selecting server when closing server session pool&lt;br/&gt;
Branch: 3.6.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/8752c00958869dad141b2f8e5241542d879db3eb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/8752c00958869dad141b2f8e5241542d879db3eb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1902946" author="xgen-internal-githook" created="Tue, 29 May 2018 00:42:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Remove extra server session pool&lt;br/&gt;
Branch: 3.7.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/7c55cbb9bcdd4ec76c03a5776ea8ea9c72ebd9f9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/7c55cbb9bcdd4ec76c03a5776ea8ea9c72ebd9f9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1902945" author="xgen-internal-githook" created="Tue, 29 May 2018 00:42:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Don&apos;t block selecting server when closing server session pool&lt;br/&gt;
Branch: 3.7.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e669eda7783691a507acb1192d50ab409f8ade2f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e669eda7783691a507acb1192d50ab409f8ade2f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1902944" author="xgen-internal-githook" created="Tue, 29 May 2018 00:39:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Remove extra server session pool&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/94acda5197be30ca6fcab94ab4d508c2902a517a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/94acda5197be30ca6fcab94ab4d508c2902a517a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1902943" author="xgen-internal-githook" created="Tue, 29 May 2018 00:39:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Don&apos;t block selecting server when closing server session pool&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/15210a62e9488b115b1be5f16c30b63bb2a3ef2c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/15210a62e9488b115b1be5f16c30b63bb2a3ef2c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1895452" author="xgen-internal-githook" created="Fri, 18 May 2018 16:15:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Use current cluster description for server session pruning&lt;/p&gt;

&lt;p&gt;By replacing a call to Cluster.getDescription to Cluster.getDescription&lt;br/&gt;
when evaluating whether to prune a server session, the driver avoids&lt;br/&gt;
potentially blocking and timing out if the cluster description is&lt;br/&gt;
unavailable (as when it loses connections to all servers in the cluster)&lt;br/&gt;
Branch: 3.6.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/ecfb4ca24056aa1c65efc99fa6b89276c136c1c1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/ecfb4ca24056aa1c65efc99fa6b89276c136c1c1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1895442" author="xgen-internal-githook" created="Fri, 18 May 2018 16:10:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Use current cluster description for server session pruning&lt;/p&gt;

&lt;p&gt;By replacing a call to Cluster.getDescription to Cluster.getDescription&lt;br/&gt;
when evaluating whether to prune a server session, the driver avoids&lt;br/&gt;
potentially blocking and timing out if the cluster description is&lt;br/&gt;
unavailable (as when it loses connections to all servers in the cluster)&lt;br/&gt;
Branch: 3.7.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/420da30a6ce310053c4dd622e68ef4a49cfaf4fc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/420da30a6ce310053c4dd622e68ef4a49cfaf4fc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1895346" author="xgen-internal-githook" created="Fri, 18 May 2018 15:27:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2859&quot; title=&quot;Running shutdown command throws a MongoTimeoutException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2859&quot;&gt;&lt;del&gt;JAVA-2859&lt;/del&gt;&lt;/a&gt;: Use current cluster description for server session pruning&lt;/p&gt;

&lt;p&gt;By replacing a call to Cluster.getDescription to Cluster.getDescription&lt;br/&gt;
when evaluating whether to prune a server session, the driver avoids&lt;br/&gt;
potentially blocking and timing out if the cluster description is&lt;br/&gt;
unavailable (as when it loses connections to all servers in the cluster)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/a6ea5879bc1c676dd5bdc23c4c7773832af52949&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/a6ea5879bc1c676dd5bdc23c4c7773832af52949&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2110103">RUST-1437</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000au1MYIAY]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <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|ht5fxz:</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>