<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:35:40 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-53] MapReduce on 1M documents collection using C# driver gives timeout.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-53</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Using MongoDB-CSharp driver to carryout a MapReduce on a collection of 1M documents leads to a network connection timeout.&lt;/p&gt;

&lt;p&gt;The mapreduce does run to completion but a timeout exception is displayed in the driver. &lt;span class=&quot;error&quot;&gt;&amp;#91;Chaning the timeout from default to 120 still leads to a timeout.&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Is this a problem with the db? Should it immediately return? With the client polling for progress?&lt;/p&gt;

&lt;p&gt;Or is there an issue with driver?&lt;/p&gt;</description>
                <environment>Win32</environment>
        <key id="12532">CSHARP-53</key>
            <summary>MapReduce on 1M documents collection using C# driver gives timeout.</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="sam">Sam Corder</assignee>
                                    <reporter username="penfold">Pen Fold</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Jul 2010 22:49:15 +0000</created>
                <updated>Wed, 19 Oct 2016 14:16:05 +0000</updated>
                            <resolved>Thu, 11 Nov 2010 19:58:28 +0000</resolved>
                                                                    <component>SAMUS</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="20242" author="lanwin" created="Thu, 11 Nov 2010 19:58:28 +0000"  >&lt;p&gt;Please report here back &lt;a href=&quot;https://github.com/mongodb-csharp/mongodb-csharp/issues&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-csharp/mongodb-csharp/issues&lt;/a&gt; if this still is not fixed.&lt;/p&gt;</comment>
                            <comment id="18638" author="lanwin" created="Tue, 28 Sep 2010 18:46:19 +0000"  >&lt;p&gt;Hi Pen, could you check that again on our latest codebase at &lt;a href=&quot;http://github.com/mongodb-csharp/mongodb-csharp?&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb-csharp/mongodb-csharp?&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16229" author="craiggwilson" created="Tue, 27 Jul 2010 21:37:49 +0000"  >&lt;p&gt;Someone more knowledgable than me with the connection stuff will need to look at this.&lt;/p&gt;</comment>
                            <comment id="16221" author="penfold" created="Tue, 27 Jul 2010 20:37:31 +0000"  >&lt;p&gt;Any ideas?&lt;/p&gt;</comment>
                            <comment id="16135" author="penfold" created="Sun, 25 Jul 2010 19:20:04 +0000"  >&lt;p&gt;Here is a snippet from my prototype:&lt;/p&gt;

&lt;p&gt;....&lt;br/&gt;
MapReduce mr = dbSampleCollection.MapReduce()&lt;br/&gt;
                .Map(@&quot;function() { emit(this.SampleId, &lt;/p&gt;
{ matches: 2 }
&lt;p&gt;); }&quot;)&lt;br/&gt;
                .Reduce(@&quot;function(key, values) &lt;/p&gt;
{ return values[0] }
&lt;p&gt;&quot;).Out(&quot;Search004&quot;).KeepTemp(true);&lt;/p&gt;

&lt;p&gt;foreach (Document document in mr.Documents)&lt;br/&gt;
{&lt;br/&gt;
                Console.WriteLine(document.Id);&lt;br/&gt;
}&lt;br/&gt;
....&lt;/p&gt;

&lt;p&gt;The query is long running (~2 -3 mins). Its as though the server is waiting for the mapreduce to complete before even sending some form of ack or the results.&lt;/p&gt;

&lt;p&gt;Is the mechanism that the driver uses to query long running queries incorrect or is the route cause the db not sending a keep-alive response?&lt;/p&gt;</comment>
                            <comment id="16133" author="lanwin" created="Sun, 25 Jul 2010 17:00:39 +0000"  >&lt;p&gt;That is simply the line which reads the response from the server, so it looks like that the server dose not send an answer. &lt;/p&gt;

&lt;p&gt;Can you give us more information about how the query looks like?&lt;/p&gt;</comment>
                            <comment id="16104" author="penfold" created="Sat, 24 Jul 2010 11:11:30 +0000"  >&lt;p&gt;The line that fails on an IOException timeout is:&lt;/p&gt;

&lt;p&gt;reply.Read(_connection.GetStream());&lt;/p&gt;

&lt;p&gt;Here is the call stack:&lt;/p&gt;

&lt;p&gt;MongoDB.dll!MongoDB.Connections.Connection.SendTwoWayMessageCore&amp;lt;MongoDB.Document&amp;gt;(MongoDB.Protocol.IRequestMessage message = &lt;/p&gt;
{MongoDB.Protocol.QueryMessage}
&lt;p&gt;, MongoDB.Bson.BsonReaderSettings readerSettings = &lt;/p&gt;
{MongoDB.Bson.BsonReaderSettings}
&lt;p&gt;) Line 111&lt;br/&gt;
MongoDB.dll!MongoDB.Connections.Connection.SendCommandCore&amp;lt;MongoDB.Document&amp;gt;(MongoDB.Serialization.ISerializationFactory factory = &lt;/p&gt;
{MongoDB.Serialization.SerializationFactory}, string database = &quot;Db005&quot;, System.Type rootType = {Name = &quot;Sample&quot; FullName = &quot;MongoPrototype.Sample&quot;}, object command = { &quot;mapreduce&quot;: &quot;Samples&quot;, &quot;verbose&quot;: true, &quot;map&quot;: { &quot;$code&quot;: &quot;function() { emit(this.SampleId, { matches: 2 })}&quot; }, &quot;reduce&quot;: { &quot;$code&quot;: &quot;function(key, values) { return values[0] }&quot; }, &quot;out&quot;: &quot;Search004&quot;, &quot;keeptemp&quot;: true }) Line 289 + 0x54 bytes&lt;br/&gt;
MongoDB.dll!MongoDB.Connections.Connection.SendCommand(MongoDB.Serialization.ISerializationFactory factory = {MongoDB.Serialization.SerializationFactory}
&lt;p&gt;, string database = &quot;Db005&quot;, System.Type rootType = &lt;/p&gt;
{Name = &quot;Sample&quot; FullName = &quot;MongoPrototype.Sample&quot;}, MongoDB.Document command = { &quot;mapreduce&quot;: &quot;Samples&quot;, &quot;verbose&quot;: true, &quot;map&quot;: { &quot;$code&quot;: &quot;function() { emit(this.SampleId, { matches: 2 })}&quot; }, &quot;reduce&quot;: { &quot;$code&quot;: &quot;function(key, values) { return values[0] }&quot; }, &quot;out&quot;: &quot;Search004&quot;, &quot;keeptemp&quot;: true }) Line 226 + 0x19 bytes&lt;br/&gt;
MongoDB.dll!MongoDB.MongoDatabase.SendCommand(System.Type rootType = {Name = &quot;Sample&quot; FullName = &quot;MongoPrototype.Sample&quot;}
&lt;p&gt;, MongoDB.Document command = { &quot;mapreduce&quot;: &quot;Samples&quot;, &quot;verbose&quot;: true, &quot;map&quot;: { &quot;$code&quot;: &quot;function() { emit(this.SampleId, &lt;/p&gt;
{ matches: 2 }
&lt;p&gt;)}&quot; }, &quot;reduce&quot;: { &quot;$code&quot;: &quot;function(key, values) &lt;/p&gt;
{ return values[0] }
&lt;p&gt;&quot; }, &quot;out&quot;: &quot;Search004&quot;, &quot;keeptemp&quot;: true }) Line 273 + 0x3a bytes&lt;br/&gt;
MongoDB.dll!MongoDB.MapReduce.RetrieveData() Line 243 + 0x3f bytes&lt;br/&gt;
MongoDB.dll!MongoDB.MapReduce.get_Documents() Line 67 + 0xd bytes&lt;br/&gt;
MongoPrototype.exe!MongoPrototype.Program.Main(string[] args = &lt;/p&gt;
{string[0]}
&lt;p&gt;) Line 30 + 0x6e bytes&lt;/p&gt;</comment>
                            <comment id="16100" author="penfold" created="Fri, 23 Jul 2010 22:53:08 +0000"  >&lt;p&gt;Using MongoDB-CSharp 0.90.0.1.&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|hrh9z3:</customfieldvalue>

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