<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:52:17 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-19855] Operations that convey shard version information must include a minimum optime</title>
                <link>https://jira.mongodb.org/browse/SERVER-19855</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When a setShardVersion command, find command or write command that includes shard version information is sent to a shard server from another node (typically a mongos), it must also include the an optime on the config server no earlier than the earliest one in which that shard version information became available. Otherwise, a shard server refreshing its view of the sharding metadata from a secondary  might read too-old metadata, and not see the new shard version.&lt;/p&gt;</description>
                <environment></environment>
        <key id="224964">SERVER-19855</key>
            <summary>Operations that convey shard version information must include a minimum optime</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="schwerin@mongodb.com">Andy Schwerin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Aug 2015 20:34:44 +0000</created>
                <updated>Wed, 25 Jan 2017 22:00:24 +0000</updated>
                            <resolved>Fri, 18 Sep 2015 18:53:51 +0000</resolved>
                                    <version>3.1.7</version>
                                    <fixVersion>3.1.9</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1042357" author="xgen-internal-githook" created="Thu, 24 Sep 2015 17:56:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Include config server optime even on command failure responses from mongod&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3a7b1a9800f75706f35a290a8dee198bb29e3366&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3a7b1a9800f75706f35a290a8dee198bb29e3366&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1037042" author="xgen-internal-githook" created="Fri, 18 Sep 2015 17:36:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Update config server optime based on response metadata from running commands through DBClientInterface connections&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/455d5e0cc5aa9649b12b25f827efdf96b4a7c360&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/455d5e0cc5aa9649b12b25f827efdf96b4a7c360&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1037041" author="xgen-internal-githook" created="Fri, 18 Sep 2015 17:36:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Update config server optime based on response metadata from running commands against shards through the ShardRegistry&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d6c1bb1838d434c9ff354467ba8f831ef379c954&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d6c1bb1838d434c9ff354467ba8f831ef379c954&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1037039" author="xgen-internal-githook" created="Fri, 18 Sep 2015 17:35:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20425&quot; title=&quot;Sharding dist lock acquisition must update the latest optime on the catalog manager&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20425&quot;&gt;&lt;del&gt;SERVER-20425&lt;/del&gt;&lt;/a&gt; Make ShardRegistry responsible for tracking the config server optime.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a3ef7c1a233148861b3c8ada4849f5763d26d5f8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a3ef7c1a233148861b3c8ada4849f5763d26d5f8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1037038" author="xgen-internal-githook" created="Fri, 18 Sep 2015 17:35:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Change ShardingRequestMetadata to ConfigServerRequestMetadata to parallel ConfigServerResponseMetadata&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9b4cf35eed13f9661db7735cd942b2f43aed136c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9b4cf35eed13f9661db7735cd942b2f43aed136c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1033564" author="xgen-internal-githook" created="Thu, 17 Sep 2015 20:00:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;renctan&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Make shards append last known config opTime on command metadata response&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/85cfca58ffe522f13118d715532f7eb8a45ad0c1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/85cfca58ffe522f13118d715532f7eb8a45ad0c1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1033165" author="xgen-internal-githook" created="Thu, 17 Sep 2015 16:02:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19905&quot; title=&quot;Change optime &amp;quot;term&amp;quot; field to &amp;quot;t&amp;quot;, and consolidate parsing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19905&quot;&gt;&lt;del&gt;SERVER-19905&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Put config server optime into its own subobject when sending with commands&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3619498a9f4ff383cdd546a320abbec11a511bc6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3619498a9f4ff383cdd546a320abbec11a511bc6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1033163" author="xgen-internal-githook" created="Thu, 17 Sep 2015 16:02:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Advance catalog manager optime on shards based on information sent from mongos&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0e0a4e5e8a70ce1f6208c613d2897186a0b8a1c3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0e0a4e5e8a70ce1f6208c613d2897186a0b8a1c3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1033161" author="xgen-internal-githook" created="Thu, 17 Sep 2015 16:02:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20285&quot; title=&quot;Unify the formats used by the find and write commands for specifying shard version metadata&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20285&quot;&gt;&lt;del&gt;SERVER-20285&lt;/del&gt;&lt;/a&gt; Make write commands send shard version information at the top level&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e44bf3dc351624ff26968a8006dfa385ffc83516&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e44bf3dc351624ff26968a8006dfa385ffc83516&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1033160" author="xgen-internal-githook" created="Thu, 17 Sep 2015 16:02:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Make ShardForceVersionOkModeBlock use the OperationShardVersion instead of the ShardedConnectionInfo&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9c9356b7887b3fb633203a229007a2b4e225d12f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9c9356b7887b3fb633203a229007a2b4e225d12f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1014245" author="xgen-internal-githook" created="Tue, 25 Aug 2015 19:12:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Use ShardConnection for migrations and splits&lt;/p&gt;

&lt;p&gt;This reverts commit 169a7ca486099a93e8d3ea19cc556dc2c55fcd0e.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0d61a386620b9403b5fd19f276ded78ba766c2e8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0d61a386620b9403b5fd19f276ded78ba766c2e8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1014244" author="xgen-internal-githook" created="Tue, 25 Aug 2015 19:12:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Do not perform shard version checking where not necessary&lt;/p&gt;

&lt;p&gt;This reverts commit 045cd1070cae1e7827255850c2fe35194e48b24e.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d64c98deed2440ae0f3700dc373bf8b97886030c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d64c98deed2440ae0f3700dc373bf8b97886030c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1012373" author="xgen-internal-githook" created="Sat, 22 Aug 2015 02:20:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Use ShardConnection for migrations and splits&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit fdc2aec174d2facc5edeacd2b7f4c078836f1dfb.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/169a7ca486099a93e8d3ea19cc556dc2c55fcd0e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/169a7ca486099a93e8d3ea19cc556dc2c55fcd0e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1012361" author="xgen-internal-githook" created="Sat, 22 Aug 2015 01:24:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Do not perform shard version checking where not necessary&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 31716d2ae526d82d7d36464f6c9fae8b9f38542f.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/045cd1070cae1e7827255850c2fe35194e48b24e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/045cd1070cae1e7827255850c2fe35194e48b24e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1012209" author="xgen-internal-githook" created="Fri, 21 Aug 2015 21:00:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Use ShardConnection for migrations and splits&quot;&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit bae1d256c52d42e2e095d127f5bbec94abb68e05.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fdc2aec174d2facc5edeacd2b7f4c078836f1dfb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fdc2aec174d2facc5edeacd2b7f4c078836f1dfb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1012208" author="xgen-internal-githook" created="Fri, 21 Aug 2015 21:00:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Do not perform shard version checking where not necessary&lt;/p&gt;

&lt;p&gt;The code in RangeDeleter and sharding migration and split uses&lt;br/&gt;
AutoGetCollectionForRead, which has the side effect of checking for shard&lt;br/&gt;
version, based on the context. This causes problems in the cases where we&lt;br/&gt;
are transmitting shard version information as part of the context, in&lt;br/&gt;
particular during the migration cases.&lt;/p&gt;

&lt;p&gt;This change gets rid of these checks and replaces them with plain lock&lt;br/&gt;
retrieval.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/31716d2ae526d82d7d36464f6c9fae8b9f38542f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/31716d2ae526d82d7d36464f6c9fae8b9f38542f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1011927" author="xgen-internal-githook" created="Fri, 21 Aug 2015 17:12:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Use ShardConnection for migrations and splits&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit f8cdaf32b6c44528123d8ffef7ea801a2f611745.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bae1d256c52d42e2e095d127f5bbec94abb68e05&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bae1d256c52d42e2e095d127f5bbec94abb68e05&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1011836" author="xgen-internal-githook" created="Fri, 21 Aug 2015 16:11:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Use ShardConnection for migrations and splits&lt;/p&gt;

&lt;p&gt;This ensures that prior to sending the operation on the wire, the host&lt;br/&gt;
will be primed to know that it is part of a sharded cluster.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f8cdaf32b6c44528123d8ffef7ea801a2f611745&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f8cdaf32b6c44528123d8ffef7ea801a2f611745&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1008555" author="xgen-internal-githook" created="Tue, 18 Aug 2015 18:03:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Remove &apos;shardName&apos; field from write commands&apos; metadata&lt;/p&gt;

&lt;p&gt;It is not necessary, because it already goes over an initialized&lt;br/&gt;
connection, which would have performed the shard name validation.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/beff0ee6a7a044bc44953a5bd383479d749e8471&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/beff0ee6a7a044bc44953a5bd383479d749e8471&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1007538" author="xgen-internal-githook" created="Mon, 17 Aug 2015 21:19:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Include min OpTime with shard version&lt;/p&gt;

&lt;p&gt;This change adds the OpTime of the chunk manager as of the time its cached&lt;br/&gt;
metadata was loaded along with each versioned request sent from MongoS.&lt;br/&gt;
This includes write commands and the setShardVersion command.&lt;/p&gt;

&lt;p&gt;The OpTime is only sent as part of this change. There will be a follow-up&lt;br/&gt;
change to add code to interpret this information on the MongoD side.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5be3721da7af1fc5258e9f1753e51324cdd83092&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5be3721da7af1fc5258e9f1753e51324cdd83092&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1006126" author="xgen-internal-githook" created="Fri, 14 Aug 2015 19:31:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Include min OpTime with shard version&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit cec89b290906adb7d36507d20d619aaa5a6f6c16.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1cee34ee3907b7652abdfc7f75ca27ef421a46c4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1cee34ee3907b7652abdfc7f75ca27ef421a46c4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1006124" author="xgen-internal-githook" created="Fri, 14 Aug 2015 19:29:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Include min OpTime with shard version&lt;/p&gt;

&lt;p&gt;This change adds the OpTime of the chunk manager as of the time its cached&lt;br/&gt;
metadata was loaded along with each versioned request sent from MongoS.&lt;br/&gt;
This includes write commands and the setShardVersion command.&lt;/p&gt;

&lt;p&gt;The OpTime is only sent as part of this change. There will be a follow-up&lt;br/&gt;
change to add code to interpret this information on the MongoD side.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cec89b290906adb7d36507d20d619aaa5a6f6c16&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cec89b290906adb7d36507d20d619aaa5a6f6c16&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1006123" author="xgen-internal-githook" created="Fri, 14 Aug 2015 19:29:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Make write_ops have their own SConscript&lt;/p&gt;

&lt;p&gt;Also fixes some includes and dependencies.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/914c12f4c7e850cacc6292bc330101579a0627ef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/914c12f4c7e850cacc6292bc330101579a0627ef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1004253" author="xgen-internal-githook" created="Thu, 13 Aug 2015 12:55:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Move dropCollection implementation out of CatalogManager&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/312fe328972341c071516b2e92227325471293ea&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/312fe328972341c071516b2e92227325471293ea&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1003713" author="xgen-internal-githook" created="Wed, 12 Aug 2015 21:19:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19855&quot; title=&quot;Operations that convey shard version information must include a minimum optime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19855&quot;&gt;&lt;del&gt;SERVER-19855&lt;/del&gt;&lt;/a&gt; Parsing/serialization logic for OpTime&lt;/p&gt;

&lt;p&gt;This change pulls the OpTime serialization/deserialization logic to be&lt;br/&gt;
part of the class.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2482d4387b6a0fcdf825e07d7f5260041a89f3f6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2482d4387b6a0fcdf825e07d7f5260041a89f3f6&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="226233">SERVER-20025</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="230503">SERVER-20494</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="223917">SERVER-19736</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="228382">SERVER-20285</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="230507">SERVER-20498</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>25.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>Tue, 11 Aug 2015 22:13:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 20 weeks, 6 days 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>Fri, 18 Sep 2015 23:59:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2</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>crystal.horn@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 20 weeks, 6 days 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</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|hrkxzj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hre93b:</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="621">Sharding 8 08/28/15</customfieldvalue>
    <customfieldvalue id="637">Sharding 9 (09/18/15)</customfieldvalue>
    <customfieldvalue id="685">Sharding A (10/09/15)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14261" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 10 Aug 2015 00:00:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Change the read preference in the CSRS catalog manager implementation to &quot;secondary preferred&quot; and run the sharding test suite.&lt;/p&gt;</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|hsbzdb:</customfieldvalue>

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