<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16:53 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-2995] Failing aggregate-out unit test with write concern</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2995</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Unit test&#160;/crud/read/aggregate-out fails when a write concern is in the connection string for the 2nd test with batchSize = 0.&#160; Since batchSize = 0 get back a cursor after the aggregate command, a getMore is sent and getMore contains the write concern.&lt;/p&gt;

&lt;p&gt;Looks like this will be fixed by the changes for &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; as that will no longer send batchSize = 0.&#160;&#160;&lt;/p&gt;

&lt;p&gt;&quot;results&quot;: [&lt;br/&gt;
Expected success, got error &quot;Command does not support writeConcern&quot;:&lt;br/&gt;
{ &quot;name&quot; : &quot;aggregate&quot;, &quot;arguments&quot; : { &quot;pipeline&quot; : [ { &quot;$sort&quot; : &lt;/p&gt;
{ &quot;x&quot; : 1 }
&lt;p&gt; }, { &quot;$match&quot; : { &quot;_id&quot; : &lt;/p&gt;
{ &quot;$gt&quot; : 1 }
&lt;p&gt; } }, { &quot;$out&quot; : &quot;other_test_collection&quot; } ], &quot;batchSize&quot; : 0 } }&lt;br/&gt;
 { &quot;status&quot;: &quot;fail&quot;, &quot;test_file&quot;: &quot;/crud/read/aggregate-out&quot;, &quot;seed&quot;: &quot;1278059495&quot;, &quot;start&quot;: 4126.506109, &quot;end&quot;: 4127.022308, &quot;elapsed&quot;: 0.516199 }&lt;br/&gt;
 ]&lt;/p&gt;

&lt;p&gt;Command getMore started:&lt;/p&gt;
{ &quot;getMore&quot; : 5371882048943694072, &quot;collection&quot; : &quot;test&quot;, &quot;writeConcern&quot; : \{ &quot;w&quot; : &quot;majority&quot;, &quot;j&quot; : true }
&lt;p&gt;, &quot;$db&quot; : &quot;test&quot;, &quot;lsid&quot; : { &quot;id&quot; : { &quot;$binary&quot; : &lt;/p&gt;
{ &quot;base64&quot;: &quot;sAS3DPNiTS6ApKYrrupusQ==&quot;, &quot;subType&quot; : &quot;04&quot; 
}
&lt;p&gt; } }, &quot;$clusterTime&quot; : { &quot;clusterTime&quot; : { &quot;$timestamp&quot; : &lt;/p&gt;
{ &quot;t&quot; : 1551826988, &quot;i&quot; : 16 }
&lt;p&gt; }, &quot;signature&quot; : { &quot;hash&quot; : { &quot;$binary&quot; : &lt;/p&gt;
{ &quot;base64&quot;: &quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;, &quot;subType&quot; : &quot;00&quot; }
&lt;p&gt; }, &quot;keyId&quot; : 0 } } &lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>AIX/gcc</environment>
        <key id="710703">CDRIVER-2995</key>
            <summary>Failing aggregate-out unit test with write concern</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="13201">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="amygiersch">Amy Giersch</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Mar 2019 15:49:12 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:23 +0000</updated>
                            <resolved>Thu, 7 Mar 2019 02:37:24 +0000</resolved>
                                    <version>1.14.0</version>
                                    <fixVersion>1.15.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2173717" author="kevin.albertson" created="Thu, 7 Mar 2019 02:37:24 +0000"  >&lt;p&gt;Hi Amy, thanks for the detailed report! As you predicted, this is resolved in &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; and will be fixed in the 1.15.0 release.&lt;/p&gt;

&lt;p&gt;To double check, I reproduced your test failure locally by running test-libmongoc with &lt;tt&gt;MONGOC_TEST_URI&lt;/tt&gt; of &lt;tt&gt;mongodb://localhost:27017/db?w=1&lt;/tt&gt; before the changes of &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;, and confirmed that &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; does fix it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="680482">CDRIVER-2939</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hufgi7:</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>