<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:44:00 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>[CSHARP-2970] Deadlock using Atlas</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2970</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I&apos;m not sure if this is a driver issue or a breaking change with Atlas.&lt;/p&gt;

&lt;p&gt;I only see the issue when I connect to an Atlas server, if I connect to a 3.12 replicaset server (on my local network) then the code example works fine.&lt;/p&gt;

&lt;p&gt;I&apos;m using the free version of Atlas in a 3 node replicaset configuration (default?). Nothing else configured.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;var client = new MongoClient(...);&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;var database = client.GetDatabase(MongoUrl.Create(connectionString).DatabaseName);&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;var userAccounts = }}{{database&lt;/tt&gt;&lt;tt&gt;.GetCollection&amp;lt;BsonDocument(&quot;userAccounts&quot;)&lt;/tt&gt;&lt;br/&gt;
{{ .WithWriteConcern(WriteConcern.Acknowledged);}}&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;var logging =&lt;/tt&gt;&lt;br/&gt;
{{ database}}&lt;tt&gt;.GetCollection&amp;lt;BsonDocument&amp;gt;(&quot;logging&quot;)&lt;/tt&gt;&lt;tt&gt;.WithWriteConcern(WriteConcern.Unacknowledged);&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;userAccounts.InsertOne(new BsonDocument());&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;await logging.InsertOneAsync(new BsonDocument());&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;{{userAccounts.InsertOne(new BsonDocument()); // &amp;lt;-- deadlock here }}&lt;/p&gt;

&lt;p&gt;If I change the logging collection to be WriteConcern.Acknowledged then the deadlock goes away.&lt;/p&gt;

&lt;p&gt;Async or Sync methods don&apos;t make any difference.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>Windows 10 1903, .NET Core 2.1, Visual Studio 2019</environment>
        <key id="1161392">CSHARP-2970</key>
            <summary>Deadlock using Atlas</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="9">Done</resolution>
                                        <assignee username="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</assignee>
                                    <reporter username="steve.ward.uk@gmail.com">Steven Ward</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Feb 2020 09:03:14 +0000</created>
                <updated>Mon, 9 Mar 2020 23:04:31 +0000</updated>
                            <resolved>Mon, 9 Mar 2020 23:04:31 +0000</resolved>
                                    <version>2.7.0</version>
                    <version>2.8.0</version>
                    <version>2.9.0</version>
                    <version>2.10.2</version>
                                                    <component>Operations</component>
                    <component>Write Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2955999" author="dmitry.lukyanov" created="Mon, 9 Mar 2020 23:04:31 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=steve.ward.uk%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;steve.ward.uk@gmail.com&quot;&gt;steve.ward.uk@gmail.com&lt;/a&gt;, we&#8217;ve identified the root cause as a bug in Atlas.  We are working on a fix. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1116531">JAVA-3608</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|hr7q1z:</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>