<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36:20 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>[GODRIVER-1411] Data race between creating a new connection and disconnecting topology</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1411</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eric.daniels&quot; class=&quot;user-hover&quot; rel=&quot;eric.daniels&quot;&gt;eric.daniels&lt;/a&gt; pointed out a data race that I&apos;ve attached to this ticket. We should be able to get around this by storing &lt;tt&gt;c.nc&lt;/tt&gt; as an atomic value and loading it atomically in &lt;tt&gt;pool.closeConnection&lt;/tt&gt;. Eric pointed out that we might be able to write a test for this by having one goroutine open a connection and another goroutine close it.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/237526/237526_stacktrace&quot; title=&quot;stacktrace attached to GODRIVER-1411&quot;&gt;stacktrace&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1007207">GODRIVER-1411</key>
            <summary>Data race between creating a new connection and disconnecting topology</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="isabella.siu@mongodb.com">Isabella Siu</assignee>
                                    <reporter username="divjot.arora@mongodb.com">Divjot Arora</reporter>
                        <labels>
                    </labels>
                <created>Sat, 16 Nov 2019 17:03:15 +0000</created>
                <updated>Sat, 28 Oct 2023 11:38:25 +0000</updated>
                            <resolved>Wed, 29 Jan 2020 21:55:24 +0000</resolved>
                                                    <fixVersion>1.3.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2771469" author="xgen-internal-githook" created="Wed, 29 Jan 2020 21:09:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;iwysiu&apos;, &apos;username&apos;: &apos;iwysiu&apos;, &apos;email&apos;: &apos;isabella.siu@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1411&quot; title=&quot;Data race between creating a new connection and disconnecting topology&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1411&quot;&gt;&lt;del&gt;GODRIVER-1411&lt;/del&gt;&lt;/a&gt; fix data race between connection.connect and pool.disconnect (#284)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/9bf2a79ed1a98a464036e1c6720e47bfe7fb92e0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/9bf2a79ed1a98a464036e1c6720e47bfe7fb92e0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2634964" author="isabella.siu" created="Mon, 16 Dec 2019 20:15:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eric.daniels&quot; class=&quot;user-hover&quot; rel=&quot;eric.daniels&quot;&gt;eric.daniels&lt;/a&gt; so I have a fix for this at&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/258&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/258&lt;/a&gt;, but this could hurt performance.&#160; It changes closeConnection to wait for the connection to finish connecting, which could take a long time in certain situations.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="237526" name="stacktrace" size="2552" author="divjot.arora@mongodb.com" created="Sat, 16 Nov 2019 17:03:13 +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|hvrsin:</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>