<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16:45 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>[CDRIVER-2939] Drivers should ignore batchSize=0 for aggregate with $out</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2939</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;See &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-587&quot; title=&quot;Drivers should ignore batchSize=0 for aggregate with $out&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-587&quot;&gt;&lt;del&gt;DRIVERS-587&lt;/del&gt;&lt;/a&gt; for details.&lt;/p&gt;</description>
                <environment></environment>
        <key id="680482">CDRIVER-2939</key>
            <summary>Drivers should ignore batchSize=0 for aggregate with $out</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="13201">Fixed</resolution>
                                        <assignee username="clyde.bazile@mongodb.com">Clyde Bazile III</assignee>
                                    <reporter username="rathi.gnanasekaran">Rathi Gnanasekaran</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Jan 2019 19:46:02 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:26 +0000</updated>
                            <resolved>Thu, 28 Feb 2019 18:00:53 +0000</resolved>
                                                    <fixVersion>1.15.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2166486" author="xgen-internal-githook" created="Thu, 28 Feb 2019 17:52:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;bazile-clyde&apos;, &apos;email&apos;: &apos;34226620+bazile-clyde@users.noreply.github.com&apos;, &apos;username&apos;: &apos;bazile-clyde&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2939&quot; title=&quot;Drivers should ignore batchSize=0 for aggregate with $out&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2939&quot;&gt;&lt;del&gt;CDRIVER-2939&lt;/del&gt;&lt;/a&gt; We should ignore batchSize=0 for agg cmds with $out&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/b213866a96910828ef90a5e3b9f7e0775eeaa78d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/b213866a96910828ef90a5e3b9f7e0775eeaa78d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2150227" author="kevin.albertson" created="Thu, 14 Feb 2019 21:43:43 +0000"  >&lt;p&gt;Here are some ways to approach this ticket:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Test aggregate with $out in the shell and see why batchSize=0 is really an issue (as you can tell, I myself don&apos;t have a great understanding).&lt;/li&gt;
	&lt;li&gt;Modify example-client.c to try mongoc_collection_aggregate with $out and batch size as options to see how it works in the C driver&lt;/li&gt;
	&lt;li&gt;Make the change in mongoc-collection.c. We already have a _has_out_key to check for specific behavior for $out in a pipeline. That&apos;s &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/master/src/libmongoc/src/mongoc/mongoc-collection.c#L481&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Then, make mock server tests to check that we are not sending batchSize=0 when $out is included, that we are sending it when $out is omitted, and that we are sending batchSize&amp;gt;0 when $out is included.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Here&apos;s an example of the mock server we fumbled through together, slightly cleaned up and commented:&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/kevinAlbs/8c96d2693f0611a0cc267407a67e7774&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/kevinAlbs/8c96d2693f0611a0cc267407a67e7774&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="680478">CXX-1721</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="634695">DRIVERS-587</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="710703">CDRIVER-2995</issuekey>
        </issuelink>
                            </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|huak47:</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>