<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:28:10 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-31782] allow aggregation to take an &apos;allowPartialResults&apos; option</title>
                <link>https://jira.mongodb.org/browse/SERVER-31782</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The infrastructure for this is already in place: it&apos;s just a matter of parsing an &apos;allowPartialResults&apos; option (similar to the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/find/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;find command&lt;/a&gt;) and passing it down to establishCursors(), which takes &apos;allowPartialResults&apos; as a standalone boolean argument that &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.6.0-rc1/src/mongo/s/commands/cluster_aggregate.cpp#L398&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the agg code currently always sets to false&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We should also first double-check that it makes sense to accept allowPartialResults for all aggregations ($facet? $lookup? $graphLookup?).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28874&quot; title=&quot;make stale shardVersion error override &amp;#39;allowPartialResults&amp;#39; option in establishCursors()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28874&quot;&gt;&lt;del&gt;SERVER-28874&lt;/del&gt;&lt;/a&gt; fixed the behavior of &apos;allowPartialResults&apos; in establishCursors() and added thorough unit testing. It also added a jstest, jstests/sharding/allow_partial_results.js, which explicitly checks that aggregation does not accept the &apos;allowPartialResults&apos; option, so this ticket should update that test.&lt;/p&gt;</description>
                <environment></environment>
        <key id="453615">SERVER-31782</key>
            <summary>allow aggregation to take an &apos;allowPartialResults&apos; option</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-query-optimization">Backlog - Query Optimization</assignee>
                                    <reporter username="esha.maharishi@mongodb.com">Esha Maharishi</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 1 Nov 2017 03:22:45 +0000</created>
                <updated>Tue, 18 Jul 2023 07:42:02 +0000</updated>
                                            <version>3.6.0-rc1</version>
                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="5573050" author="JIRAUSER1265427" created="Tue, 18 Jul 2023 07:42:02 +0000"  >&lt;p&gt;This has been requested by a customer today as it&apos;s blocking them from using the Aggregation Framework. If they want to display partial results using aggregations, the query is failing currently. Also they mentioned allowPartialResults is not available when using .count() or .distinct()&lt;/p&gt;</comment>
                            <comment id="1716432" author="asya" created="Fri, 3 Nov 2017 14:29:08 +0000"  >&lt;p&gt;This is a good idea and could help with resolving &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3322&quot; title=&quot;sharded aggregations should be very tolerant of node failures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3322&quot;&gt;SERVER-3322&lt;/a&gt; and/or &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17696&quot; title=&quot;Terminate sharded queries immediately after a failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17696&quot;&gt;&lt;del&gt;SERVER-17696&lt;/del&gt;&lt;/a&gt; (which are two requests currently in conflict with each other, and having this flag would allow behavior in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3322&quot; title=&quot;sharded aggregations should be very tolerant of node failures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3322&quot;&gt;SERVER-3322&lt;/a&gt; when the flag is set and implementing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17696&quot; title=&quot;Terminate sharded queries immediately after a failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17696&quot;&gt;&lt;del&gt;SERVER-17696&lt;/del&gt;&lt;/a&gt; when it&apos;s not).&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="18611">SERVER-3322</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="191342">SERVER-17696</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="375687">SERVER-28874</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2251049">SERVER-73557</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25126"><![CDATA[Query Optimization]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 3 Nov 2017 14:29:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        29 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>david.sanchez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            29 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-query-optimization</customfieldvalue>
            <customfieldvalue>david.sanchez@mongodb.com</customfieldvalue>
            <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htj4l3:</customfieldvalue>

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

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

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