<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:06:36 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-24527] add test to ensure shard undergoes sharding initialization through setShardVersion</title>
                <link>https://jira.mongodb.org/browse/SERVER-24527</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The test sharding_state_after_stepdown.js was deleted as part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24126&quot; title=&quot;Add step to _cfgsvrAddShard command where it inserts the shardIdentity document to the new shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24126&quot;&gt;&lt;del&gt;SERVER-24126&lt;/del&gt;&lt;/a&gt; since the changes in that ticket make shard nodes shard aware on (re)start.&lt;/p&gt;

&lt;p&gt;However, some parts of the test regarding loading sharding metadata should be re-added as a new test (unless there are sufficient existing tests around sharding metadata initialization).&lt;/p&gt;</description>
                <environment></environment>
        <key id="293106">SERVER-24527</key>
            <summary>add test to ensure shard undergoes sharding initialization through setShardVersion</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="9">Done</resolution>
                                        <assignee username="esha.maharishi@mongodb.com">Esha Maharishi</assignee>
                                    <reporter username="esha.maharishi@mongodb.com">Esha Maharishi</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Jun 2016 20:28:33 +0000</created>
                <updated>Sat, 19 Nov 2016 00:05:13 +0000</updated>
                            <resolved>Mon, 19 Sep 2016 15:14:08 +0000</resolved>
                                                    <fixVersion>3.3.14</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1387521" author="xgen-internal-githook" created="Mon, 19 Sep 2016 15:13:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Esha Maharishi&apos;, u&apos;email&apos;: u&apos;esha.maharishi@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24527&quot; title=&quot;add test to ensure shard undergoes sharding initialization through setShardVersion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24527&quot;&gt;&lt;del&gt;SERVER-24527&lt;/del&gt;&lt;/a&gt; add test to ensure shard undergoes sharding initialization through setShardVersion&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fd19ddff758912365f22813d2ec8c93688676144&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fd19ddff758912365f22813d2ec8c93688676144&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1386772" author="esha.maharishi@10gen.com" created="Fri, 16 Sep 2016 21:48:47 +0000"  >&lt;p&gt;For context:&lt;/p&gt;

&lt;p&gt;The original test utilized mongos to check that sharding initialization through setShardVersion happened by asserting that shards targeted for a query or command became sharding aware.&lt;/p&gt;

&lt;p&gt;However, after the original test was deleted, a change in the balancer logic made the balancer send a sharded command to every shard every 10 seconds, so setShardVersion is now sent from the balancer as well:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/89bc462da9bd7c5edd6c54da58615a0cc8542ebd#diff-e080c2c67c95e7f7f98e8655372b9996R556&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/89bc462da9bd7c5edd6c54da58615a0cc8542ebd#diff-e080c2c67c95e7f7f98e8655372b9996R556&lt;/a&gt;&lt;br/&gt;
followed by:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7f736859d32f9237aa382a676644082a9f66a45d#diff-e080c2c67c95e7f7f98e8655372b9996R431&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7f736859d32f9237aa382a676644082a9f66a45d#diff-e080c2c67c95e7f7f98e8655372b9996R431&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thus, the new test simply expects the balancer to send setShardVersion and for newly added shards to undergo sharding initialization soon, even if they don&apos;t receive a shardIdentity document.&lt;/p&gt;</comment>
                            <comment id="1378735" author="esha.maharishi@10gen.com" created="Wed, 7 Sep 2016 18:49:51 +0000"  >&lt;p&gt;Related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25971&quot; title=&quot;Test performing ops against a 3.4 sharded cluster where the shards don&amp;#39;t have a shardIdentity doc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25971&quot;&gt;&lt;del&gt;SERVER-25971&lt;/del&gt;&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;The removed test checks that setShardVersion is appropriately sent to a shard after the shard is hit by a sharded query, and that sharding state is then initialized on the shard.&lt;/p&gt;

&lt;p&gt;The test assumes that restarting or stepping down a shard primary will clear its sharding state. However, after All Nodes Shard Aware:&lt;/p&gt;

&lt;p&gt;1) the shard will remember its sharding state after a restart through the on-disk shardIdentity doc&lt;br/&gt;
2) secondaries are also shard aware&lt;/p&gt;

&lt;p&gt;The only period that shard aware initialization is still performed through setShardVersion is:&lt;/p&gt;

&lt;p&gt;1) if a 3.2 mongos adds a shard, and the mongos sends setShardVersion to the new shard before the config asynchronously inserts the shardIdentity document on the new shard&lt;br/&gt;
2) if a 3.4 mongos adds a shard, and the mongos sends setShardVersion to the new shard before the asynchronous OpObserver on the shard finishes sharding initialization&lt;/p&gt;

&lt;p&gt;Therefore, a failpoint that stops or delays the shardIdentity document from being sent from the config to the new shard is probably useful for both tests.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="285932">SERVER-24126</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="314382">SERVER-25971</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>3.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>Mon, 19 Sep 2016 15:13:49 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 21 weeks, 2 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-108</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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 21 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrk5sn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrcer3:</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="1017">Sharding 2016-08-29</customfieldvalue>
    <customfieldvalue id="1234">Sharding 2016-09-19</customfieldvalue>
    <customfieldvalue id="1235">Sharding 2016-10-10</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|hsevif:</customfieldvalue>

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