<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:01:13 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-4093] &quot;com.mongodb.MongoException: state should be: open&quot; when concurrently accessing the client for HELP repro</title>
                <link>https://jira.mongodb.org/browse/JAVA-4093</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The attached short repro is a simplified version of a stress test. In short, it just creates an array of MongoClient instances and is using them concurrently from other threads. This fails with &quot;state should be: open&quot; right at the first read.&lt;/p&gt;

&lt;p&gt;The sharded cluster backend should be any version of v4.0 branch, like 4.0.23.&lt;/p&gt;

&lt;p&gt;The Java driver could be 3.10.2, which is used by customer, but could be anything that works, initially. The versions I tried are in pom.xml - 3.10.2, 3.12.8, 4.0.6, 4.2.2.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="1666434">JAVA-4093</key>
            <summary>&quot;com.mongodb.MongoException: state should be: open&quot; when concurrently accessing the client for HELP repro</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="andrew.shuvalov@mongodb.com">Andrew Shuvalov</reporter>
                        <labels>
                    </labels>
                <created>Wed, 31 Mar 2021 18:40:22 +0000</created>
                <updated>Fri, 27 Oct 2023 13:20:57 +0000</updated>
                            <resolved>Wed, 31 Mar 2021 19:03:32 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3694813" author="JIRAUSER1256988" created="Wed, 31 Mar 2021 19:49:33 +0000"  >&lt;p&gt;Thank you &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jeff.yemin&quot; class=&quot;user-hover&quot; rel=&quot;jeff.yemin&quot;&gt;jeff.yemin&lt;/a&gt;!&lt;/p&gt;</comment>
                            <comment id="3694717" author="jeff.yemin" created="Wed, 31 Mar 2021 19:03:20 +0000"  >&lt;p&gt;The test program has a bug.  It uses try-with-resources, which implicitly calls the close method on the MongoClient when the try block is exited. So right after you add the client to the Vector, the client is closed.&lt;/p&gt;
</comment>
                            <comment id="3694687" author="JIRAUSER1256988" created="Wed, 31 Mar 2021 18:48:56 +0000"  >&lt;p&gt;Is there a workaround to make this code working with existing drivers?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="307559" name="ConcurrentRepro.java" size="7125" author="andrew.shuvalov@mongodb.com" created="Wed, 31 Mar 2021 18:32:22 +0000"/>
                            <attachment id="307558" name="pom.xml" size="1941" author="andrew.shuvalov@mongodb.com" created="Wed, 31 Mar 2021 18:32:32 +0000"/>
                    </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|hynkqn:</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>