<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:06:07 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-24352] configs initialize sharding awareness on sharding-unaware shards on transition to primary</title>
                <link>https://jira.mongodb.org/browse/SERVER-24352</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Add a class that can run a BackgroundJob on the config servers to initialize sharding awareness on any shards in config.shards that are not marked as sharding aware (as represented by a flag field in config.shards).&lt;/p&gt;

&lt;p&gt;The BackgroundJob can be kicked off on transition to primary or by an OpObserver watching for inserts to config.shards.&lt;/p&gt;

&lt;p&gt;While the cluster upgrade is in progress:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;If a non-3.4 shard is added by an old mongos OR the new _configsvrAddShard process, the shardIdentity document will be inserted into the shard and remain latent until the shard is upgraded to 3.4 and restarted with --shardsvr, at which point the shard will become sharding aware. The configs will incorrectly but harmlessly believe the shard is sharding aware (that is, the shard will be marked as &quot;sharding aware&quot; in config.shards). This is because the insert of the shardIdentity document won&apos;t have been impeded by an OpObserver on the shard checking for --shardsvr.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;If a 3.4 shard is added through the new _configsvrAddShard process, all works as designed for a 3.4 cluster.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;If a 3.4 shard started with --shardsvr is added by an old mongos, the OpObserver on the configs will asynchronously initialize sharding awareness on it by kicking off the BackgroundJob.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;If a 3.4 mongod without --shardsvr is added by an old mongos, the OpObserver will kick off the asynchronous BackgroundJob, but the mongod will reject the shardIdentity document. The old mongos will believe the shard has been added, but all sharding requests the mongos sends to it will be rejected by the shard. TODO: Should the BackgroundJob remove the shard&apos;s entry from config.shards, so that the old mongos stops trying to communicate with it as soon as it reloads the ShardRegistry?&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="290875">SERVER-24352</key>
            <summary>configs initialize sharding awareness on sharding-unaware shards on transition to primary</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>Wed, 1 Jun 2016 21:08:55 +0000</created>
                <updated>Sat, 13 Aug 2016 00:07:00 +0000</updated>
                            <resolved>Wed, 27 Jul 2016 21:45:00 +0000</resolved>
                                    <version>3.3.6</version>
                                    <fixVersion>3.3.11</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1338958" author="xgen-internal-githook" created="Wed, 27 Jul 2016 21:44:31 +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-24352&quot; title=&quot;configs initialize sharding awareness on sharding-unaware shards on transition to primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24352&quot;&gt;&lt;del&gt;SERVER-24352&lt;/del&gt;&lt;/a&gt; configs initialize sharding awareness on sharding-unaware shards on transition to primary&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e3068c25d388166433fe2120d835375e7c9f76ad&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e3068c25d388166433fe2120d835375e7c9f76ad&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1281780" author="esha.maharishi@10gen.com" created="Wed, 1 Jun 2016 21:33:39 +0000"  >&lt;p&gt;Sounds good, maybe a method can be added to CatalogManager to do the check in config.shards and that uses the executorForAddShard to do the shardIdentity insert.&lt;/p&gt;</comment>
                            <comment id="1281768" author="spencer" created="Wed, 1 Jun 2016 21:24:43 +0000"  >&lt;p&gt;I don&apos;t think this is done as a literal BackgroundJob subclass.  I think you just have a function that is called during config server transition to primary, and the OpObserver just schedules that function to run in a TaskExecutor.&lt;/p&gt;</comment>
                            <comment id="1281759" author="esha.maharishi@10gen.com" created="Wed, 1 Jun 2016 21:22:57 +0000"  >&lt;p&gt;Resolution for the TODO: we decided that the insert of the shardIdentity document should not fail on the shard, and that the shard can simply reject sharding requests until it is restarted with --shardsvr. This is to allow for manual modification (e.g., delete and re-insert) of the shardIdentity document during things like backup-restore.&lt;/p&gt;</comment>
                            <comment id="1281734" author="esha.maharishi@10gen.com" created="Wed, 1 Jun 2016 21:11:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=renctan&quot; class=&quot;user-hover&quot; rel=&quot;renctan&quot;&gt;renctan&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer&quot; class=&quot;user-hover&quot; rel=&quot;spencer&quot;&gt;spencer&lt;/a&gt;, please confirm if the behavior in the TODO in the last bullet point is what we want?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="265897">SERVER-22660</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="265902">SERVER-22663</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.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>Wed, 1 Jun 2016 21:24:43 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 29 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_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, 29 weeks 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>
            <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|hrk6tr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrcqqv:</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="1013">Sharding 15 (06/03/16)</customfieldvalue>
    <customfieldvalue id="1014">Sharding 16 (06/24/16)</customfieldvalue>
    <customfieldvalue id="1015">Sharding 17 (07/15/16)</customfieldvalue>
    <customfieldvalue id="1016">Sharding 18 (08/05/16)</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|hsewrz:</customfieldvalue>

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