<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:49:22 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>[SERVER-18955] mongoS doesn&apos;t set batch size (and keeps the old one, 0) on getMore if performed on first _cursor-&gt;more()</title>
                <link>https://jira.mongodb.org/browse/SERVER-18955</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;mongos in cursors.cpp only sets batch size (and always sets batch size) after a document is returned.  This leads to the batch size being set to 0 every time a full load of ntoreturn documents are sent back to the client.  If the cursor is exhausted at that point, then the next getMore request to the mongoD (which will be sent on the next will request to the mongoS) will have a batch size of 0.  This returns all results and can lead to cursors timing out.&lt;/p&gt;

&lt;p&gt;Moving the setBatchSize before the loop starts and after all breaks (so no useless work is performed setting an invalid batch size on break) should fix this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="210377">SERVER-18955</key>
            <summary>mongoS doesn&apos;t set batch size (and keeps the old one, 0) on getMore if performed on first _cursor-&gt;more()</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="charlie.page@10gen.com">Charlie Page</assignee>
                                    <reporter username="charlie.page@10gen.com">Charlie Page</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Jun 2015 20:20:02 +0000</created>
                <updated>Wed, 3 Jan 2018 21:50:17 +0000</updated>
                            <resolved>Tue, 30 Jun 2015 18:51:07 +0000</resolved>
                                    <version>2.6.10</version>
                    <version>3.0.3</version>
                    <version>3.1.4</version>
                                    <fixVersion>2.6.11</fixVersion>
                    <fixVersion>3.0.5</fixVersion>
                    <fixVersion>3.1.6</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="955583" author="xgen-internal-githook" created="Wed, 1 Jul 2015 14:12:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;lissom&apos;, u&apos;name&apos;: u&apos;charlie.page@gmail.com&apos;, u&apos;email&apos;: u&apos;charlie.page@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18955&quot; title=&quot;mongoS doesn&amp;#39;t set batch size (and keeps the old one, 0) on getMore if performed on first _cursor-&amp;gt;more()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18955&quot;&gt;&lt;del&gt;SERVER-18955&lt;/del&gt;&lt;/a&gt; Have ShardedClientCursor set the batch size before all calls&lt;/p&gt;

&lt;p&gt;comment update&lt;/p&gt;

&lt;p&gt;Signed-off-by: Randolph Tan &amp;lt;randolph@10gen.com&amp;gt;&lt;br/&gt;
(cherry picked from commit 52840b1595449155acecb1a7401a332cbdb53fad)&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
	src/mongo/s/cursors.cpp&lt;br/&gt;
	src/mongo/s/cursors.h&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 61349d3c00c5a6a4fecfcd12f528574d25ba1bf1)&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dd56a8285ff95bcb4bf185710a483a150ccf29ca&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dd56a8285ff95bcb4bf185710a483a150ccf29ca&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="955577" author="xgen-internal-githook" created="Wed, 1 Jul 2015 14:07:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;lissom&apos;, u&apos;name&apos;: u&apos;charlie.page@gmail.com&apos;, u&apos;email&apos;: u&apos;charlie.page@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18955&quot; title=&quot;mongoS doesn&amp;#39;t set batch size (and keeps the old one, 0) on getMore if performed on first _cursor-&amp;gt;more()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18955&quot;&gt;&lt;del&gt;SERVER-18955&lt;/del&gt;&lt;/a&gt; Have ShardedClientCursor set the batch size before all calls&lt;/p&gt;

&lt;p&gt;comment update&lt;/p&gt;

&lt;p&gt;Signed-off-by: Randolph Tan &amp;lt;randolph@10gen.com&amp;gt;&lt;br/&gt;
(cherry picked from commit 52840b1595449155acecb1a7401a332cbdb53fad)&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
	src/mongo/s/cursors.cpp&lt;br/&gt;
	src/mongo/s/cursors.h&lt;br/&gt;
Branch: v3.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/61349d3c00c5a6a4fecfcd12f528574d25ba1bf1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/61349d3c00c5a6a4fecfcd12f528574d25ba1bf1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="954889" author="xgen-internal-githook" created="Tue, 30 Jun 2015 18:49:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;lissom&apos;, u&apos;name&apos;: u&apos;charlie.page@gmail.com&apos;, u&apos;email&apos;: u&apos;charlie.page@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18955&quot; title=&quot;mongoS doesn&amp;#39;t set batch size (and keeps the old one, 0) on getMore if performed on first _cursor-&amp;gt;more()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18955&quot;&gt;&lt;del&gt;SERVER-18955&lt;/del&gt;&lt;/a&gt; Have ShardedClientCursor set the batch size before all calls&lt;/p&gt;

&lt;p&gt;comment update&lt;/p&gt;

&lt;p&gt;Signed-off-by: Randolph Tan &amp;lt;randolph@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/52840b1595449155acecb1a7401a332cbdb53fad&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/52840b1595449155acecb1a7401a332cbdb53fad&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="943016" author="renctan" created="Wed, 17 Jun 2015 15:26:43 +0000"  >&lt;p&gt;Note: the key to reproducing this issue is to make sure that the mongos will open cursors to multiple shards.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="215365">SERVER-19317</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="15514">2.6.11</customfieldvalue>
    <customfieldvalue id="15441">3.0.5</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000UaXoOIAV]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 15 Jun 2015 21:01:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 33 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/WRITING-1366'>WRITING-1366</a></s>]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 33 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>charlie.page@10gen.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl3bj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsaa9j:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="576">Sharding 6 07/17/15</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11857"><![CDATA[Requested]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hs5h93:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>