<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:54 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-1184] Investigate Timeouts</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1184</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;See &lt;a href=&quot;http://stackoverflow.com/questions/28723222/timeoutexceptions-from-mongo-c-sharp-driver-with-async-api&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/28723222/timeoutexceptions-from-mongo-c-sharp-driver-with-async-api&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There is a configuration option for raising this higher (MongoClientOptions.OperationTimeout) -&amp;gt; &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver/MongoClientSettings.cs#L254&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver/MongoClientSettings.cs#L254&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This might just be a case where it used to take this long with 1.x, but there were no timeouts in the 1.x side of things.&lt;/p&gt;</description>
                <environment></environment>
        <key id="186146">CSHARP-1184</key>
            <summary>Investigate Timeouts</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="craig.wilson@mongodb.com">Craig Wilson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Feb 2015 17:31:51 +0000</created>
                <updated>Thu, 3 Dec 2020 16:45:52 +0000</updated>
                            <resolved>Thu, 3 Dec 2020 16:45:52 +0000</resolved>
                                    <version>2.0</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="844152" author="xgen-internal-githook" created="Thu, 5 Mar 2015 20:21:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1184&quot; title=&quot;Investigate Timeouts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1184&quot;&gt;&lt;del&gt;CSHARP-1184&lt;/del&gt;&lt;/a&gt;: Added a ReceiveCoordinator to handle coordinating the responsibilities of the cooperating receive methods.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/031ff8e1720ff617e70f586a462a37d39c6a3109&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/031ff8e1720ff617e70f586a462a37d39c6a3109&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="844151" author="xgen-internal-githook" created="Thu, 5 Mar 2015 20:21:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1184&quot; title=&quot;Investigate Timeouts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1184&quot;&gt;&lt;del&gt;CSHARP-1184&lt;/del&gt;&lt;/a&gt;: Replace outbound queue with a send lock in BinaryConnection.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/46752e822d4138203113812894a3ada5b979ad6e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/46752e822d4138203113812894a3ada5b979ad6e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="843768" author="movereem" created="Thu, 5 Mar 2015 15:19:31 +0000"  >&lt;p&gt;Hi Craig, great! Everything seems to work fine with this branch. I am not able to reproduce the bug in our application any longer. Thanks again for fixing this issue.&lt;/p&gt;</comment>
                            <comment id="838994" author="craiggwilson" created="Fri, 27 Feb 2015 16:05:42 +0000"  >&lt;p&gt;Hi Michiel,&lt;/p&gt;

&lt;p&gt;So, I was able to repro with a test application. I made a fix on this branch (&lt;a href=&quot;https://github.com/craiggwilson/mongo-csharp-driver/tree/fix_timeout&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/craiggwilson/mongo-csharp-driver/tree/fix_timeout&lt;/a&gt;) and am no longer able to reproduce. Not saying that this is the end solution, just trying to prove that it&apos;s not just our machines in a little test harness. Since you mentioned this was a full blown, real application, would you mind pulling down this branch and testing it?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Craig&lt;/p&gt;</comment>
                            <comment id="838256" author="craiggwilson" created="Thu, 26 Feb 2015 19:00:46 +0000"  >&lt;p&gt;No, no repro needed. Doesn&apos;t seem like a race condition either. We are legitimately waiting on data. However, it seems that that data has already arrived but the stream.ReadAsync is still in a waiting state. We are sitting here  (&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver.Core/Core/Misc/StreamExtensionMethods.cs#L45&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver.Core/Core/Misc/StreamExtensionMethods.cs#L45&lt;/a&gt;) but the NetworkStream&apos;s DataAvailable is true and there are bytes on the socket, so, we are working through this really, really low-level issue.&lt;/p&gt;</comment>
                            <comment id="838252" author="movereem" created="Thu, 26 Feb 2015 18:55:05 +0000"  >&lt;p&gt;Cool! So no repro from me needed?&lt;/p&gt;</comment>
                            <comment id="837963" author="craiggwilson" created="Thu, 26 Feb 2015 15:02:29 +0000"  >&lt;p&gt;Yeah, that&apos;s what I meant (are you using something small and reproducible or your system). Never the less, I&apos;ve got a repro currently and we are tracking it down. Thanks so much for the report.&lt;/p&gt;</comment>
                            <comment id="837955" author="movereem" created="Thu, 26 Feb 2015 14:50:55 +0000"  >&lt;p&gt;Hi Craig, I was afraid of that &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; What do you mean, what are you using? Our application? Or versions of different libraries? It is a commercial piece of software, based on the CQRS pattern. What I am going to do is find a way to make a small reproduction, hopefully that will help.&lt;/p&gt;</comment>
                            <comment id="837909" author="craiggwilson" created="Thu, 26 Feb 2015 13:33:31 +0000"  >&lt;p&gt;Thanks Michael. This sounds exactly like a race condition. They are usually heisenbugs. Once we can reproduce it faithfully, then we&apos;ll be able to fix it. What are you using when you see the issue?&lt;/p&gt;</comment>
                            <comment id="837821" author="movereem" created="Thu, 26 Feb 2015 09:01:46 +0000"  >&lt;p&gt;I traced through the source code and I can now see it hangs on the line&lt;br/&gt;
   var reply = await connection.ReceiveMessageAsync&amp;lt;TDocument&amp;gt;(message.RequestId, _serializer, _messageEncoderSettings, cancellationToken).ConfigureAwait(false);&lt;br/&gt;
in QueryWireProtocol.ExecuteAsync , caused by a FindOperation.&lt;/p&gt;

&lt;p&gt;However, when I step through it, the error does not occur, so timing and locking might be an issue here.&lt;/p&gt;</comment>
                            <comment id="837811" author="movereem" created="Thu, 26 Feb 2015 07:36:01 +0000"  >&lt;p&gt;I do not think that it has to do with slow queries that are suddenly canceled by the timeout. When I raise the setting to 2 minutes, I get the same result. Those queries do not take this long with the current v1 version of the driver. It seems more of a blocking issue, but I have no idea where to begin logging and debugging this.&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|hs6lqn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>163879</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>