<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:58 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-1558] Deadlock in Web Context</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1558</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;There appears to be a deadlock when trying to find files in GridFS using the Async method.&lt;/p&gt;

&lt;p&gt;var client = new MongoClient(&quot;whatever_connection_str&quot;);&lt;br/&gt;
var database = client.GetDatabase(&quot;your_db&quot;);&lt;br/&gt;
var bucket = new GridFSBucket(database, new GridFSBucketOptions &lt;/p&gt;
{ BucketName = &quot;MyDocs&quot; }
&lt;p&gt;);&lt;br/&gt;
var builder = Builders&amp;lt;GridFSFileInfo&amp;gt;.Filter;&lt;/p&gt;

&lt;p&gt;// userid is embedded in the metadata of the fileinfo, confirmed it&apos;s there and correct type etc&lt;br/&gt;
var filter = builder.Eq(info =&amp;gt; info.Metadata&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;UserId&amp;quot;&amp;#93;&lt;/span&gt;, &amp;lt;any_object_id&amp;gt;);&lt;br/&gt;
var files = await bucket.FindAsync(filter);  &amp;lt;-- this deadlocks in ASP.Net&lt;/p&gt;

&lt;p&gt;If you try the same code in a console app it works fine.&lt;/p&gt;</description>
                <environment>ASP.Net WebApi</environment>
        <key id="264105">CSHARP-1558</key>
            <summary>Deadlock in Web Context</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="-1">Unassigned</assignee>
                                    <reporter username="steve.ward.uk@gmail.com">Steven Ward</reporter>
                        <labels>
                            <label>deadlock</label>
                    </labels>
                <created>Tue, 9 Feb 2016 15:01:37 +0000</created>
                <updated>Tue, 16 Nov 2021 15:36:02 +0000</updated>
                            <resolved>Tue, 9 Feb 2016 16:30:42 +0000</resolved>
                                    <version>2.2</version>
                    <version>2.2.3</version>
                                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1167985" author="rstam" created="Tue, 9 Feb 2016 16:30:21 +0000"  >&lt;p&gt;Thanks for letting us know.&lt;/p&gt;</comment>
                            <comment id="1167981" author="steve.ward.uk@gmail.com" created="Tue, 9 Feb 2016 16:28:19 +0000"  >&lt;p&gt;This can be closed as a non-bug. The problem was much higher up in the stack where there was a missing await.&lt;/p&gt;

&lt;p&gt;Weirdly, other awaits still worked and only this one deadlocked.&lt;/p&gt;

&lt;p&gt;Works fine now though.&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|hsi7kn:</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>