<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:41 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>[JAVA-3887] Driver sets getMore command batchSize to min(batchSize, remainingLimit)</title>
                <link>https://jira.mongodb.org/browse/JAVA-3887</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The driver sets &lt;tt&gt;batchSize&lt;/tt&gt; for &lt;tt&gt;getMore&lt;/tt&gt; commands to the minimum of the configured batch size and the number of documents that would cause the configured limit to be reached.  There is no reason to do this, and it actually causes the driver to sometimes send an unnecessary &lt;tt&gt;killCursors&lt;/tt&gt; command, as in some scenarios mongos servers do not close the cursor if the limit was only just reached. It&apos;s also an inconsistency with other drivers that can cause issues with specification test expectations. &lt;/p&gt;

&lt;p&gt;We should fix this by just sending the batchSize configured by the application.&lt;/p&gt;

&lt;p&gt;At the same time, we can also remove all the client-side checks for the limit being reached, as the server now takes responsibility for that (ever since the introduction of the &lt;tt&gt;find&lt;/tt&gt; command).&lt;/p&gt;</description>
                <environment></environment>
        <key id="1540548">JAVA-3887</key>
            <summary>Driver sets getMore command batchSize to min(batchSize, remainingLimit)</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10033" iconUrl="https://jira.mongodb.org/images/icons/statuses/information.png" description="Status for tickets that need to be escalated and unblocked on our team.">Blocked</status>
                    <statusCategory id="4" key="indeterminate" colorName="inprogress"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Nov 2020 18:50:28 +0000</created>
                <updated>Tue, 24 Oct 2023 13:24:58 +0000</updated>
                                                                            <component>Query Operations</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3494715" author="jeff.yemin" created="Tue, 17 Nov 2020 22:11:51 +0000"  >&lt;p&gt;Blocked on future DRIVERS ticket, as there are several spec tests that assume the current behavior:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;tt&gt;A successful find event with a getmore and the server kills the cursor&lt;/tt&gt; in command-monitoring/find.json&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;A successful find event with a getmore and the server kills the cursor&lt;/tt&gt; in unified-test-format/poc-command-monitoring.json&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                        </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|hr3mv3:</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>