<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:09:14 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-45599] Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0</title>
                <link>https://jira.mongodb.org/browse/SERVER-45599</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The incremental changes under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32198&quot; title=&quot;Missing collection metadata on the shard implies both UNSHARDED and &amp;quot;metadata not loaded yet&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32198&quot;&gt;&lt;del&gt;SERVER-32198&lt;/del&gt;&lt;/a&gt; cleaned up the CollectionShardingState/Runtime, but were never backported all the way to 4.0. In order to complete this ticket and have it available in 4.0 we need to finish backporting these changes and this ticket will be used to track that work. When it is done, master, 4.2 and 4.0 will be at the same level of functionality to actually be able to throw SSV in all code paths, when the filtering metadata is not yet known.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1098879">SERVER-45599</key>
            <summary>Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0</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="kaloian.manassiev@mongodb.com">Kaloian Manassiev</assignee>
                                    <reporter username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                            <label>PM-1645-Milestone-1</label>
                    </labels>
                <created>Thu, 16 Jan 2020 08:49:18 +0000</created>
                <updated>Sun, 29 Oct 2023 22:13:13 +0000</updated>
                            <resolved>Mon, 2 Mar 2020 11:11:43 +0000</resolved>
                                                    <fixVersion>4.0.17</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2912827" author="xgen-internal-githook" created="Wed, 26 Feb 2020 19:46:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-39495&quot; title=&quot;Shard key is omitted from update and remove oplog entries with multi:true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-39495&quot;&gt;&lt;del&gt;SERVER-39495&lt;/del&gt;&lt;/a&gt;: Move ShardingState::needCollectionMetadata under OperationShardingState&lt;/p&gt;

&lt;p&gt;ShardingState logically contains answers to questions about whether the&lt;br/&gt;
current instance is node in a sharded cluster, whereas&lt;br/&gt;
OperationShardingState is responsible for the &apos;shardedness&apos; of the&lt;br/&gt;
commands.&lt;/p&gt;

&lt;p&gt;This is a partial cherry-pick from b049257fbd1d215388cffaf7544f6741dbce5b45, adapted for the 4.0 branch.&lt;/p&gt;

&lt;p&gt;Also backports the addition of more testing for multi:true/justOne:false updates and ChangeStreams, which was taken from commit 50f6bd4d6a9428a6f1df22db792d7b55d773762c.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fcd2dd41189fffc6e67a8645b99974178f87ca04&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fcd2dd41189fffc6e67a8645b99974178f87ca04&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2912138" author="xgen-internal-githook" created="Wed, 26 Feb 2020 16:22:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kaloianm&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-39495&quot; title=&quot;Shard key is omitted from update and remove oplog entries with multi:true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-39495&quot;&gt;&lt;del&gt;SERVER-39495&lt;/del&gt;&lt;/a&gt;: Only return versioned filtering metadata for cases that actually need to do filtering&lt;/p&gt;

&lt;p&gt;This is a partial cherry-pick from 851dad7902d6bb8c3ed25f99f565a2e2c8c8bc47, adapted for the 4.0 branch.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/62a6b963bc20ba74d2f3e0d62552dc3b7b1f1133&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/62a6b963bc20ba74d2f3e0d62552dc3b7b1f1133&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2909901" author="xgen-internal-githook" created="Wed, 26 Feb 2020 12:15:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32198&quot; title=&quot;Missing collection metadata on the shard implies both UNSHARDED and &amp;quot;metadata not loaded yet&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32198&quot;&gt;&lt;del&gt;SERVER-32198&lt;/del&gt;&lt;/a&gt;: Split CollectionShardingState::getMetadata into three methods&lt;/p&gt;

&lt;p&gt;o getCurrentMetadataIfKnown - which returns the current filtering metadata if any is available&lt;br/&gt;
o getMetadataForOperation - which returns the metadata which is required by the current opertion, based on the OperationShardingState&lt;br/&gt;
o getCurrentMetadata - which returns the currently available filtering metadata (or UNSHARDED if not known)&lt;/p&gt;

&lt;p&gt;This is in preparation for making getMetadataForOperation/getCurrentMetadata throw StaleShardVersion exception if the metadata has not been loaded yet.&lt;/p&gt;

&lt;p&gt;This is a partial cherry-pick from dcf7e0dd89d34f58b592f1adb3d41e5edd6e2012, adapted for the 4.0 branch.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b41cd4b2c416e965fc3541c97cd0b51563d90c40&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b41cd4b2c416e965fc3541c97cd0b51563d90c40&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2909699" author="xgen-internal-githook" created="Wed, 26 Feb 2020 08:00:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32198&quot; title=&quot;Missing collection metadata on the shard implies both UNSHARDED and &amp;quot;metadata not loaded yet&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32198&quot;&gt;&lt;del&gt;SERVER-32198&lt;/del&gt;&lt;/a&gt;: Make MetadataManager support an &apos;UNKNOWN&apos; filtering metadata state&lt;/p&gt;

&lt;p&gt;This is partial cherry-pick of the changes done under 20117b8ee9678794be675eb4d728bfcc8f9d75f4 to make the 4.0 logic match that of 4.2.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/96ced970aef7c5dbf81b660009bb80f33d8026e8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/96ced970aef7c5dbf81b660009bb80f33d8026e8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2907835" author="xgen-internal-githook" created="Tue, 25 Feb 2020 18:14:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kaloianm&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport the &apos;assertChangeStreamEventEq&apos; function from master&lt;/p&gt;

&lt;p&gt;This function is necessary for adding change streams testing and was&lt;br/&gt;
picked up from these two commits: 065f3ef77de and 38a0e128d66, but it&lt;br/&gt;
doesn&apos;t backport the commits themselves.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6a5e4ec3084a1067f25d3aa904e1dac2c2abc90e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6a5e4ec3084a1067f25d3aa904e1dac2c2abc90e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2770647" author="xgen-internal-githook" created="Wed, 29 Jan 2020 16:39:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport the &apos;assertChangeStreamEventEq&apos; function from master&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 0363c1d062483022c7c1d2f2357edee3713073ca.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2a5433168a53044cb6b4fa8083e4cfd7ba142221&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2a5433168a53044cb6b4fa8083e4cfd7ba142221&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2770644" author="xgen-internal-githook" created="Wed, 29 Jan 2020 16:38:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32198&quot; title=&quot;Missing collection metadata on the shard implies both UNSHARDED and &amp;quot;metadata not loaded yet&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32198&quot;&gt;&lt;del&gt;SERVER-32198&lt;/del&gt;&lt;/a&gt;: Make MetadataManager support an &apos;UNKNOWN&apos; filtering metadata state&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit e4e052a10484cf2cc44c62c377db4ece8162820a.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/132aa852b1ae87f48165dbdf50943f32d2376c73&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/132aa852b1ae87f48165dbdf50943f32d2376c73&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2770641" author="xgen-internal-githook" created="Wed, 29 Jan 2020 16:38:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32198&quot; title=&quot;Missing collection metadata on the shard implies both UNSHARDED and &amp;quot;metadata not loaded yet&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32198&quot;&gt;&lt;del&gt;SERVER-32198&lt;/del&gt;&lt;/a&gt;: Split CollectionShardingState::getMetadata into three methods&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit a414e4ceafb45dc6ebf4daeb9198f0a7f3fb189c.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c25809db3532d2af31321648790e775bd420e600&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c25809db3532d2af31321648790e775bd420e600&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2770637" author="xgen-internal-githook" created="Wed, 29 Jan 2020 16:38:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-39495&quot; title=&quot;Shard key is omitted from update and remove oplog entries with multi:true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-39495&quot;&gt;&lt;del&gt;SERVER-39495&lt;/del&gt;&lt;/a&gt;: Only return versioned filtering metadata for cases that actually need to do filtering&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit fe4ced8f98d731883e5a4511d434716629e457a8.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a7e9c2223a6aa92f6648d3800d251d8335cd1881&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a7e9c2223a6aa92f6648d3800d251d8335cd1881&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2770633" author="xgen-internal-githook" created="Wed, 29 Jan 2020 16:38:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-39495&quot; title=&quot;Shard key is omitted from update and remove oplog entries with multi:true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-39495&quot;&gt;&lt;del&gt;SERVER-39495&lt;/del&gt;&lt;/a&gt;: Move ShardingState::needCollectionMetadata under OperationShardingState&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 1a01c53df8f7c1e016c0ccbc38b77f6b3508bf65.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/385511e9d05b254beb6767ed92a3cd95e83ea166&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/385511e9d05b254beb6767ed92a3cd95e83ea166&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2764730" author="xgen-internal-githook" created="Sun, 26 Jan 2020 11:13:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kaloianm&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-39495&quot; title=&quot;Shard key is omitted from update and remove oplog entries with multi:true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-39495&quot;&gt;&lt;del&gt;SERVER-39495&lt;/del&gt;&lt;/a&gt;: Move ShardingState::needCollectionMetadata under OperationShardingState&lt;/p&gt;

&lt;p&gt;ShardingState logically contains answers to questions about whether the&lt;br/&gt;
current instance is node in a sharded cluster, whereas&lt;br/&gt;
OperationShardingState is responsible for the &apos;shardedness&apos; of the&lt;br/&gt;
commands.&lt;/p&gt;

&lt;p&gt;This is a partial cherry-pick from b049257fbd1d215388cffaf7544f6741dbce5b45, adapted for the 4.0 branch.&lt;/p&gt;

&lt;p&gt;Also backports the addition of more testing for multi:true/justOne:false updates and ChangeStreams, which was taken from commit 50f6bd4d6a9428a6f1df22db792d7b55d773762c.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1a01c53df8f7c1e016c0ccbc38b77f6b3508bf65&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1a01c53df8f7c1e016c0ccbc38b77f6b3508bf65&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2764713" author="xgen-internal-githook" created="Sun, 26 Jan 2020 09:52:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-39495&quot; title=&quot;Shard key is omitted from update and remove oplog entries with multi:true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-39495&quot;&gt;&lt;del&gt;SERVER-39495&lt;/del&gt;&lt;/a&gt;: Only return versioned filtering metadata for cases that actually need to do filtering&lt;/p&gt;

&lt;p&gt;This is a partial cherry-pick from 851dad7902d6bb8c3ed25f99f565a2e2c8c8bc47, adapted for the 4.0 branch.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fe4ced8f98d731883e5a4511d434716629e457a8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fe4ced8f98d731883e5a4511d434716629e457a8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2764202" author="xgen-internal-githook" created="Sat, 25 Jan 2020 13:11:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;, &apos;username&apos;: &apos;kaloianm&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32198&quot; title=&quot;Missing collection metadata on the shard implies both UNSHARDED and &amp;quot;metadata not loaded yet&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32198&quot;&gt;&lt;del&gt;SERVER-32198&lt;/del&gt;&lt;/a&gt;: Split CollectionShardingState::getMetadata into three methods&lt;/p&gt;

&lt;p&gt;o getCurrentMetadataIfKnown - which returns the current filtering&lt;br/&gt;
metadata if any is available&lt;br/&gt;
o getMetadataForOperation - which returns the metadata which is required&lt;br/&gt;
by the current opertion, based on the OperationShardingState&lt;br/&gt;
o getCurrentMetadata - which returns the currently available filtering&lt;br/&gt;
metadata (or UNSHARDED if not known)&lt;/p&gt;

&lt;p&gt;This is in preparation for making&lt;br/&gt;
getMetadataForOperation/getCurrentMetadata throw&lt;br/&gt;
StaleShardVersion exception if the metadata has not been loaded yet.&lt;/p&gt;

&lt;p&gt;This is a partial cherry-pick from dcf7e0dd89d34f58b592f1adb3d41e5edd6e2012, adapted for the 4.0 branch.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a414e4ceafb45dc6ebf4daeb9198f0a7f3fb189c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a414e4ceafb45dc6ebf4daeb9198f0a7f3fb189c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2762236" author="xgen-internal-githook" created="Fri, 24 Jan 2020 16:37:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kaloianm&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32198&quot; title=&quot;Missing collection metadata on the shard implies both UNSHARDED and &amp;quot;metadata not loaded yet&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32198&quot;&gt;&lt;del&gt;SERVER-32198&lt;/del&gt;&lt;/a&gt;: Make MetadataManager support an &apos;UNKNOWN&apos; filtering metadata state&lt;/p&gt;

&lt;p&gt;This is partial cherry-pick of the changes done under 20117b8ee9678794be675eb4d728bfcc8f9d75f4 to make the 4.0 logic match that of 4.2.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e4e052a10484cf2cc44c62c377db4ece8162820a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e4e052a10484cf2cc44c62c377db4ece8162820a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2762173" author="xgen-internal-githook" created="Fri, 24 Jan 2020 16:13:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kaloianm&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45599&quot; title=&quot;Backport the changes to CollectionShardingState done as part of SERVER-32198 to 4.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45599&quot;&gt;&lt;del&gt;SERVER-45599&lt;/del&gt;&lt;/a&gt; Backport the &apos;assertChangeStreamEventEq&apos; function from master&lt;/p&gt;

&lt;p&gt;This function is necessary for adding change streams testing and was&lt;br/&gt;
picked up from these two commits: 065f3ef77de and 38a0e128d66, but it&lt;br/&gt;
doesn&apos;t backport the commits themselves.&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0363c1d062483022c7c1d2f2357edee3713073ca&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0363c1d062483022c7c1d2f2357edee3713073ca&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="469026">SERVER-32198</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15.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_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, 24 Jan 2020 16:13:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 50 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1645</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>
                            3 years, 50 weeks 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>kaloian.manassiev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwijp3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvndxb:</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="3570">Sharding 2020-01-27</customfieldvalue>
    <customfieldvalue id="3571">Sharding 2020-02-10</customfieldvalue>
    <customfieldvalue id="3653">Sharding 2020-03-09</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|hwi5yf:</customfieldvalue>

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