<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:41:55 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-57469] Return partial results from subset of shards when `maxTimeMS` and `allowPartialResults` are set</title>
                <link>https://jira.mongodb.org/browse/SERVER-57469</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;For all MongoDB versions:&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Scenario&quot;&gt;&lt;/a&gt;Scenario&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Multi-shard query with &lt;tt&gt;maxTimeMS&lt;/tt&gt; and &lt;tt&gt;allowPartialResults&lt;/tt&gt; targeting shards A and B&lt;/li&gt;
	&lt;li&gt;Mongos is holding in-memory preliminary results from shard A&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;maxTimeMS&lt;/tt&gt; is reached before getting results from shard B&lt;/li&gt;
	&lt;li&gt;The mongos throws a maxTimeMS error instead of returning partial results.&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;&lt;a name=&quot;Question&quot;&gt;&lt;/a&gt;Question&lt;/h3&gt;
&lt;p&gt;Should the shard return partial results?&lt;/p&gt;</description>
                <environment></environment>
        <key id="1769493">SERVER-57469</key>
            <summary>Return partial results from subset of shards when `maxTimeMS` and `allowPartialResults` are set</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="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="steve.tarzia@mongodb.com">Steve Tarzia</assignee>
                                    <reporter username="blake.oler@mongodb.com">Blake Oler</reporter>
                        <labels>
                            <label>query-director-triage</label>
                    </labels>
                <created>Fri, 4 Jun 2021 21:24:48 +0000</created>
                <updated>Sun, 29 Oct 2023 21:52:35 +0000</updated>
                            <resolved>Thu, 27 Oct 2022 13:58:12 +0000</resolved>
                                    <version>4.0.24</version>
                    <version>4.2.14</version>
                    <version>4.4.6</version>
                    <version>5.0.0-rc0</version>
                                    <fixVersion>6.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>20</watches>
                                                                                                                <comments>
                            <comment id="4930537" author="xgen-internal-githook" created="Thu, 27 Oct 2022 00:13:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Steve Tarzia&apos;, &apos;email&apos;: &apos;steve.tarzia@mongodb.com&apos;, &apos;username&apos;: &apos;starzia&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57469&quot; title=&quot;Return partial results from subset of shards when `maxTimeMS` and `allowPartialResults` are set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57469&quot;&gt;&lt;del&gt;SERVER-57469&lt;/del&gt;&lt;/a&gt; return partial results when a shard times out&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e3794c64dfa909a99655c34f5ca591ae56061377&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e3794c64dfa909a99655c34f5ca591ae56061377&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3947278" author="JIRAUSER1257640" created="Fri, 16 Jul 2021 16:22:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kody.jones&quot; class=&quot;user-hover&quot; rel=&quot;kody.jones&quot;&gt;kody.jones&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=linda.qin&quot; class=&quot;user-hover&quot; rel=&quot;linda.qin&quot;&gt;linda.qin&lt;/a&gt;&#160;I am gonna schedule this for the next iteration.&lt;/p&gt;</comment>
                            <comment id="3890674" author="schwerin" created="Tue, 22 Jun 2021 09:53:13 +0000"  >&lt;p&gt;I&#8217;m not sure when the drivers give up waiting for a response. After maxTimeMS expires, they may have given up. I&#8217;ve asked some drivers writers for feedback.&lt;/p&gt;</comment>
                            <comment id="3890464" author="JIRAUSER1257640" created="Tue, 22 Jun 2021 06:52:25 +0000"  >&lt;p&gt;So we should consider returning a partial result when either `maxTimeMS` or &lt;a href=&quot;https://github.com/mongodb/mongo/blob/c2cd9359b527da14f63418d57b1a4ffb5b7d8388/src/mongo/client/replica_set_monitor_interface.h#L52-L56&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;kDefaultFindHostTimeout&lt;/a&gt; is reached, whichever is earlier.&lt;/p&gt;</comment>
                            <comment id="3880106" author="kyle.suarez" created="Wed, 16 Jun 2021 03:05:21 +0000"  >&lt;p&gt;It sounds to me like the next steps for this ticket are:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Investigate if not setting &lt;tt&gt;maxTimeMS&lt;/tt&gt; would have allowed the partial result set to be returned, or if the current behavior is maintained;&lt;/li&gt;
	&lt;li&gt;If we just don&apos;t return partial results at all, consider converting this ticket to an improvement request to more aggressively return partial results like &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=schwerin&quot; class=&quot;user-hover&quot; rel=&quot;schwerin&quot;&gt;schwerin&lt;/a&gt; has mentioned&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Sending this back to the triage queue for reconsideration. We may not have free engineers to look at this until after the 5.0 release has passed, so it would be good to get a sense of the priority of this from the Support Team and other interested parties.&lt;/p&gt;</comment>
                            <comment id="3879323" author="schwerin" created="Tue, 15 Jun 2021 18:51:41 +0000"  >&lt;p&gt;I think generally we should be more aggressive about sending results back to the client when &lt;tt&gt;allowPartialResults&lt;/tt&gt; is set and the query doesn&apos;t require waiting for all shards to respond. If a client &lt;em&gt;hadn&apos;t&lt;/em&gt; set &lt;tt&gt;maxTimeMS&lt;/tt&gt; in this scenario, when would the partial results be returned instead? Assuming that &lt;tt&gt;shardB&lt;/tt&gt; stalls indefinitely returning results?&lt;/p&gt;</comment>
                            <comment id="3879124" author="blake.oler" created="Tue, 15 Jun 2021 17:37:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=linda.qin&quot; class=&quot;user-hover&quot; rel=&quot;linda.qin&quot;&gt;linda.qin&lt;/a&gt;&#160;is this conclusion acceptable?&lt;/p&gt;</comment>
                            <comment id="3878649" author="JIRAUSER1257640" created="Tue, 15 Jun 2021 15:11:10 +0000"  >&lt;p&gt;We discussed this and the current semantics seems correct to us, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=blake.oler&quot; class=&quot;user-hover&quot; rel=&quot;blake.oler&quot;&gt;blake.oler&lt;/a&gt;&#160;do you have a use case which we should&#160;handle it differently?&lt;/p&gt;</comment>
                            <comment id="3869432" author="blake.oler" created="Wed, 9 Jun 2021 19:22:28 +0000"  >&lt;p&gt;The query will time out with a &lt;tt&gt;maxTimeMS&lt;/tt&gt; error and will not return partial results.&lt;/p&gt;</comment>
                            <comment id="3866795" author="kyle.suarez" created="Tue, 8 Jun 2021 17:17:52 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=blake.oler&quot; class=&quot;user-hover&quot; rel=&quot;blake.oler&quot;&gt;blake.oler&lt;/a&gt;, do you know what is the current behavior of the server?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="2180721">SERVER-71241</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2186458">SERVER-71372</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2188517">SERVER-71440</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </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>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14.0</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[[500A000000ceH1pIAE]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 8 Jun 2021 17:17:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 15 weeks 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 15 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>154.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>blake.oler@mongodb.com</customfieldvalue>
            <customfieldvalue>ethan.zhang@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>steve.tarzia@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzjuu7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0xdcc:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4713">QE 2021-08-09</customfieldvalue>
    <customfieldvalue id="4715">QE 2021-08-23</customfieldvalue>
    <customfieldvalue id="4717">QE 2021-09-06</customfieldvalue>
    <customfieldvalue id="4719">QE 2021-09-20</customfieldvalue>
    <customfieldvalue id="5265">QE 2021-10-04</customfieldvalue>
    <customfieldvalue id="5267">QE 2021-10-18</customfieldvalue>
    <customfieldvalue id="5269">QE 2021-11-01</customfieldvalue>
    <customfieldvalue id="5271">QE 2021-11-15</customfieldvalue>
    <customfieldvalue id="5273">QE 2021-11-29</customfieldvalue>
    <customfieldvalue id="5275">QE 2021-12-13</customfieldvalue>
    <customfieldvalue id="5277">QE 2021-12-27</customfieldvalue>
    <customfieldvalue id="5279">QE 2022-01-10</customfieldvalue>
    <customfieldvalue id="5283">QE 2022-02-07</customfieldvalue>
    <customfieldvalue id="5810">QE 2022-01-24</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzjh3b:</customfieldvalue>

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