<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:50:50 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-60824] Support non-blocking sort() on cluster key</title>
                <link>https://jira.mongodb.org/browse/SERVER-60824</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This should add support for reverse &apos;hint&apos; as well.&lt;/p&gt;

&lt;p&gt;For time-series collections, this feature will support non-blocking sorts for queries directly against the buckets collection. Further work will be needed to support more efficient sorting by time against the time-series view.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1902502">SERVER-60824</key>
            <summary>Support non-blocking sort() on cluster key</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="joel.redman@mongodb.com">Joel Redman</assignee>
                                    <reporter username="haley.connelly@mongodb.com">Haley Connelly</reporter>
                        <labels>
                            <label>PM-2311-M2</label>
                    </labels>
                <created>Tue, 19 Oct 2021 19:25:57 +0000</created>
                <updated>Sun, 29 Oct 2023 21:47:11 +0000</updated>
                            <resolved>Tue, 12 Apr 2022 17:22:11 +0000</resolved>
                                                    <fixVersion>6.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="5152468" author="xgen-internal-githook" created="Mon, 30 Jan 2023 20:07:57 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;James Wahlin&apos;, &apos;email&apos;: &apos;james@mongodb.com&apos;, &apos;username&apos;: &apos;jameswahlin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65502&quot; title=&quot;Complete TODO listed in SERVER-60824&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65502&quot;&gt;&lt;del&gt;SERVER-65502&lt;/del&gt;&lt;/a&gt; Address &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60824&quot; title=&quot;Support non-blocking sort() on cluster key&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60824&quot;&gt;&lt;del&gt;SERVER-60824&lt;/del&gt;&lt;/a&gt; TODOs&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4af684221317dade6ca8d0d47b67476949a8f830&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4af684221317dade6ca8d0d47b67476949a8f830&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4477820" author="JIRAUSER1258164" created="Tue, 12 Apr 2022 17:22:12 +0000"  >&lt;p&gt;In the case that an index exists with a leading field matching the clustered key, that index will be chosen even if a fetch is required. This is due to a difference in how work occurs during a collection scan. For a standard index, the first work returns a value. For a collection scan (clustered or otherwise) the first return is always a WAIT. This appears to have something to do with support for tailable scans, but I wasn&apos;t able to determine the details. In any case, because of this WAIT, the collection scan always begins with a deficit for the multiplanner.&lt;/p&gt;</comment>
                            <comment id="4475480" author="xgen-internal-githook" created="Tue, 12 Apr 2022 02:58:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Joel Redman&apos;, &apos;email&apos;: &apos;joel.redman@mongodb.com&apos;, &apos;username&apos;: &apos;joredman&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60824&quot; title=&quot;Support non-blocking sort() on cluster key&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60824&quot;&gt;&lt;del&gt;SERVER-60824&lt;/del&gt;&lt;/a&gt; Permit non-blocking sorts on clustered collection scans&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8e4d331e8c20eff3ed50e3d6bb7a1b4a58aa1c16&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8e4d331e8c20eff3ed50e3d6bb7a1b4a58aa1c16&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4355890" author="xgen-internal-githook" created="Tue, 15 Feb 2022 14:22:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Henrik Edin&apos;, &apos;email&apos;: &apos;henrik.edin@mongodb.com&apos;, &apos;username&apos;: &apos;henrikedin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63601&quot; title=&quot;Disable reshard_collection_failover_shutdown_basic.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63601&quot;&gt;&lt;del&gt;SERVER-63601&lt;/del&gt;&lt;/a&gt; Disable test in sharding_clustered_collections.yml&lt;/p&gt;

&lt;p&gt;reshard_collection_failover_shutdown_basic.js need to be disabled until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60824&quot; title=&quot;Support non-blocking sort() on cluster key&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60824&quot;&gt;&lt;del&gt;SERVER-60824&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1df6ba1b92ccbc77869314dd9182c708bcd80ad4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1df6ba1b92ccbc77869314dd9182c708bcd80ad4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4329684" author="louis.williams" created="Wed, 2 Feb 2022 09:42:59 +0000"  >&lt;p&gt;The work in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62616&quot; title=&quot;Enable reshard*.js tests in sharded_clustered_collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62616&quot;&gt;&lt;del&gt;SERVER-62616&lt;/del&gt;&lt;/a&gt;  left a TODO for this ticket &lt;a href=&quot;https://github.com/mongodb/mongo/commit/2d86b7fbb3c41e728de80e6bcf32d3deceb824cf#diff-9e131ec0f6ddb8a09f59898d233f07dc242d1c85d0433577ac125845dd695f43R180&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="4305448" author="louis.williams" created="Fri, 21 Jan 2022 13:38:09 +0000"  >&lt;p&gt;We want to avoid trying to special-case for time-series and make this apply to all clustered collections. However, if necessary, we may need to split this up into another ticket for time-series support for this feature.&lt;/p&gt;</comment>
                            <comment id="4148757" author="haley.connelly" created="Tue, 26 Oct 2021 16:05:35 +0000"  >&lt;p&gt;Decided to send this over to QO and see if perhaps it belongs in PM-2556 if we don&apos;t find it urgent right now?&lt;/p&gt;</comment>
                            <comment id="4143359" author="haley.connelly" created="Fri, 22 Oct 2021 21:11:29 +0000"  >&lt;p&gt;Assigning this to storage execution backlog until we determine if it is something worth borrowing someone from Query Optimization for&lt;/p&gt;</comment>
                            <comment id="4136475" author="haley.connelly" created="Wed, 20 Oct 2021 20:18:55 +0000"  >&lt;p&gt;Originally, the idea was to mimic $natural sort/hint behavior similar to how $natural interprets a sort({$natural: +-1}) as a &lt;a href=&quot;https://github.com/10gen/mongo/blob/05f457975d489ad2261615053f185b2f14aed218/src/mongo/db/query/canonical_query.cpp#L265-L267&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;hint instead.&#160;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, the CanonicalQuery part of the code doesn&apos;t have access to the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1c5b61079bf081df648f3ce91c42bd5d9fd9d8c9/src/mongo/db/query/query_planner_params.h#L143-L145&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;QueryPlannerParams&lt;/a&gt; which can be used to obtain the cluster key or the &lt;a href=&quot;https://github.com/10gen/mongo/blob/05f457975d489ad2261615053f185b2f14aed218/src/mongo/db/catalog/collection_impl.h#L329&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Collection()&lt;/a&gt; which also can be used to obtain the cluster key.&#160;&lt;/p&gt;

&lt;p&gt;When trying to introduce changes to the query planner / query analysis, we decided that someone with more expertise in this part of the codebase is more fit to make these changes.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1879929">SERVER-60121</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1903088">SERVER-60836</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="2024212">SERVER-65541</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2246035">SERVER-73423</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2023594">SERVER-65502</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="21777"><![CDATA[v5.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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 21 Jan 2022 13:38:09 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 1 week, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-60121'>SERVER-60121</a></s>]]></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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2096</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, 1 week, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>haley.connelly@mongodb.com</customfieldvalue>
            <customfieldvalue>joel.redman@mongodb.com</customfieldvalue>
            <customfieldvalue>louis.williams@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i06flz:</customfieldvalue>

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

                        </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="5288">QO 2022-03-07</customfieldvalue>
    <customfieldvalue id="5290">QO 2022-03-21</customfieldvalue>
    <customfieldvalue id="5424">Execution Team 2021-12-27</customfieldvalue>
    <customfieldvalue id="5550">Execution Team 2022-01-10</customfieldvalue>
    <customfieldvalue id="5551">Execution Team 2022-01-24</customfieldvalue>
    <customfieldvalue id="5887">QO 2022-04-04</customfieldvalue>
    <customfieldvalue id="5889">QO 2022-04-18</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|i061rb:</customfieldvalue>

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