<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:25: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-30834] Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &apos;retryNeeded&apos; entry</title>
                <link>https://jira.mongodb.org/browse/SERVER-30834</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Shards can return a &apos;retryNeeded&apos; entry as part of a changeStream on a sharded collection.  This happens when the shard recently donated a chunk for this collection to a shard that has no chunks for that collection.  When a mongos encounters such an entry it needs to reload the shard registry (to pick up any recently added shards) and then establish changeStream cursors on any new shards it discovers.  It will also need to filter out the &apos;retryNeeded&apos; entry so it never gets back to the client.&lt;/p&gt;</description>
                <environment></environment>
        <key id="420385">SERVER-30834</key>
            <summary>Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &apos;retryNeeded&apos; entry</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="matthew.russotto@mongodb.com">Matthew Russotto</assignee>
                                    <reporter username="spencer@mongodb.com">Spencer Brody</reporter>
                        <labels>
                            <label>bkp</label>
                    </labels>
                <created>Fri, 25 Aug 2017 17:14:55 +0000</created>
                <updated>Mon, 30 Oct 2023 23:14:02 +0000</updated>
                            <resolved>Wed, 15 Nov 2017 00:28:30 +0000</resolved>
                                                    <fixVersion>3.6.0-rc5</fixVersion>
                                    <component>Querying</component>
                    <component>Replication</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1726046" author="xgen-internal-githook" created="Wed, 15 Nov 2017 02:58:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Russotto&apos;, &apos;username&apos;: &apos;mtrussotto&apos;, &apos;email&apos;: &apos;matthew.russotto@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30834&quot; title=&quot;Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &amp;#39;retryNeeded&amp;#39; entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30834&quot;&gt;&lt;del&gt;SERVER-30834&lt;/del&gt;&lt;/a&gt; Unit tests for adding shards in AsyncResultsMerger.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 07bab8342673aa337c72a6a6ef885cb7e66f066d)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b6b0035e2a0830cd1c9e099bfd142f97e142a4d6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b6b0035e2a0830cd1c9e099bfd142f97e142a4d6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1726044" author="xgen-internal-githook" created="Wed, 15 Nov 2017 02:57:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Russotto&apos;, &apos;username&apos;: &apos;mtrussotto&apos;, &apos;email&apos;: &apos;matthew.russotto@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30834&quot; title=&quot;Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &amp;#39;retryNeeded&amp;#39; entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30834&quot;&gt;&lt;del&gt;SERVER-30834&lt;/del&gt;&lt;/a&gt; Unit tests for adding shards in AsyncResultsMerger.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/07bab8342673aa337c72a6a6ef885cb7e66f066d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/07bab8342673aa337c72a6a6ef885cb7e66f066d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1725817" author="xgen-internal-githook" created="Tue, 14 Nov 2017 22:37:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Russotto&apos;, &apos;username&apos;: &apos;mtrussotto&apos;, &apos;email&apos;: &apos;matthew.russotto@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30834&quot; title=&quot;Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &amp;#39;retryNeeded&amp;#39; entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30834&quot;&gt;&lt;del&gt;SERVER-30834&lt;/del&gt;&lt;/a&gt; Look up collation for unsharded collection when running aggregate on mongos.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit b4f6f2c967afc21d03bfca68f09d148d50e59134)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/685001a0e63b7966f34b6513c886b156aee0258b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/685001a0e63b7966f34b6513c886b156aee0258b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1725816" author="xgen-internal-githook" created="Tue, 14 Nov 2017 22:37:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Russotto&apos;, &apos;username&apos;: &apos;mtrussotto&apos;, &apos;email&apos;: &apos;matthew.russotto@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30834&quot; title=&quot;Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &amp;#39;retryNeeded&amp;#39; entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30834&quot;&gt;&lt;del&gt;SERVER-30834&lt;/del&gt;&lt;/a&gt; Fix lookups from mongos to use uuid and understand NamespaceNotFound&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 7ee7fce34442c3d3588179edb61ebbc5083dbb69)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6e618dac9c850f0bbcc9ef471243ac8a8abfd2e2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6e618dac9c850f0bbcc9ef471243ac8a8abfd2e2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1725815" author="xgen-internal-githook" created="Tue, 14 Nov 2017 22:37:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Russotto&apos;, &apos;username&apos;: &apos;mtrussotto&apos;, &apos;email&apos;: &apos;matthew.russotto@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30834&quot; title=&quot;Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &amp;#39;retryNeeded&amp;#39; entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30834&quot;&gt;&lt;del&gt;SERVER-30834&lt;/del&gt;&lt;/a&gt; Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &apos;retryNeeded&apos; entry&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d4a526fdcfa3f740220940b8bf6767da959d4b3d)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/38c84ff8516540e49425c8755f1d248177a109f7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/38c84ff8516540e49425c8755f1d248177a109f7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1725673" author="xgen-internal-githook" created="Tue, 14 Nov 2017 20:58:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Russotto&apos;, &apos;username&apos;: &apos;mtrussotto&apos;, &apos;email&apos;: &apos;matthew.russotto@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30834&quot; title=&quot;Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &amp;#39;retryNeeded&amp;#39; entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30834&quot;&gt;&lt;del&gt;SERVER-30834&lt;/del&gt;&lt;/a&gt; Look up collation for unsharded collection when running aggregate on mongos.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b4f6f2c967afc21d03bfca68f09d148d50e59134&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b4f6f2c967afc21d03bfca68f09d148d50e59134&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1725672" author="xgen-internal-githook" created="Tue, 14 Nov 2017 20:58:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Russotto&apos;, &apos;username&apos;: &apos;mtrussotto&apos;, &apos;email&apos;: &apos;matthew.russotto@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30834&quot; title=&quot;Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &amp;#39;retryNeeded&amp;#39; entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30834&quot;&gt;&lt;del&gt;SERVER-30834&lt;/del&gt;&lt;/a&gt; Fix lookups from mongos to use uuid and understand NamespaceNotFound&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7ee7fce34442c3d3588179edb61ebbc5083dbb69&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7ee7fce34442c3d3588179edb61ebbc5083dbb69&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1725671" author="xgen-internal-githook" created="Tue, 14 Nov 2017 20:58:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Russotto&apos;, &apos;username&apos;: &apos;mtrussotto&apos;, &apos;email&apos;: &apos;matthew.russotto@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30834&quot; title=&quot;Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &amp;#39;retryNeeded&amp;#39; entry&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30834&quot;&gt;&lt;del&gt;SERVER-30834&lt;/del&gt;&lt;/a&gt; Make mongos reload the shard registry and re-establish changeStream cursors when encountering a &apos;retryNeeded&apos; entry&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d4a526fdcfa3f740220940b8bf6767da959d4b3d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d4a526fdcfa3f740220940b8bf6767da959d4b3d&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="463830">SERVER-32085</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="426062">SERVER-31028</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="459133">SERVER-31978</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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15141"><![CDATA[v3.6]]></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>Thu, 19 Oct 2017 16:39:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 13 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_14262" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 26 Sep 2017 00:00:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-89</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>
                            6 years, 13 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>matthew.russotto@mongodb.com</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htdnof:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht6zkn:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1915">Repl 2017-10-23</customfieldvalue>
    <customfieldvalue id="1931">Repl 2017-11-13</customfieldvalue>
    <customfieldvalue id="1957">Repl 2017-12-04</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14261" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 25 Aug 2017 00:00:00 +0000</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|htd9rb:</customfieldvalue>

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