<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:57:06 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-41202] admin.system.version is not restored by mongorestore</title>
                <link>https://jira.mongodb.org/browse/SERVER-41202</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Following the procedure of restoring a sharded cluster from backup (&lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/restore-sharded-cluster/#optional-for-any-csrs-hostname-or-replica-set-name-changes-update-shard-metadata-in-each-shard-s-identity-document&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/tutorial/restore-sharded-cluster/#optional-for-any-csrs-hostname-or-replica-set-name-changes-update-shard-metadata-in-each-shard-s-identity-document&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;I stumbled upon an issue.&lt;/p&gt;

&lt;p&gt;There is this step:&lt;/p&gt;

&lt;p&gt;use admin&lt;br/&gt;
db.system.version.deleteOne( { _id: &quot;minOpTimeRecovery&quot; } )&lt;/p&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;p&gt;db.system.version.updateOne(&lt;br/&gt;
 { &quot;_id&quot; : &quot;shardIdentity&quot; },&lt;/p&gt;
 { $set :
 \{ &quot;configsvrConnectionString&quot; : &quot;myNewCSRSName/config1.example.net:27019,config2.example.net:27019,config3.example.net:27019&quot;}
&lt;p&gt; }&lt;br/&gt;
)&lt;/p&gt;

&lt;p&gt;however having restored my backup (dump created by mongodump), system.version collection contains only the following documents&lt;/p&gt;

{ &quot;_id&quot; : &quot;featureCompatibilityVersion&quot;, &quot;version&quot; : &quot;4.0&quot; }
{ &quot;_id&quot; : &quot;authSchema&quot;, &quot;currentVersion&quot; : 5 }
&lt;p&gt;.&lt;/p&gt;

&lt;p&gt;Seems that mongorestore ignores system.version collection.&lt;/p&gt;

&lt;p&gt;I see in my backup log that system.version is written to the dup directory, and I can see the files in the backup dir.&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 134 May 17 14:12 system.version.metadata.json&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 716 May 17 14:12 system.version.bson&lt;/p&gt;

&lt;p&gt;But when I run mongorestore it restores everythin but the system.version collection (I am restoring all databases, without any filters)&lt;br/&gt;
I restore to a mongod instance that doesn&apos;t have accsess control enabled at all.&lt;/p&gt;


&lt;p&gt;I end up inserting the document into system.version&lt;/p&gt;

&lt;p&gt;db.system.version.insertOne(&lt;/p&gt;
{ &quot;_id&quot; : &quot;shardIdentity&quot;, &quot;clusterId&quot; : ObjectId(&quot;***&quot;), &quot;shardName&quot; : &quot;****&quot;, &quot;configsvrConnectionString&quot; : &quot;***/****:****,****:*****,****:****&quot; }
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;In the end when i am done with restoring all shards, the sharded cluster works without any issues.&lt;/p&gt;

&lt;p&gt;Is there a way to force mongorestore restore the admin.system.version collection? or Am I missing something here?&lt;/p&gt;


&lt;p&gt;Thanks for your assistance in advance.&lt;br/&gt;
Best regards&lt;/p&gt;</description>
                <environment></environment>
        <key id="770610">SERVER-41202</key>
            <summary>admin.system.version is not restored by mongorestore</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="eric.sedor@mongodb.com">Eric Sedor</assignee>
                                    <reporter username="genacvali91">Gennadiy</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 May 2019 12:05:14 +0000</created>
                <updated>Wed, 22 May 2019 19:28:29 +0000</updated>
                            <resolved>Wed, 22 May 2019 19:16:27 +0000</resolved>
                                    <version>4.0.4</version>
                                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2256769" author="eric.sedor" created="Wed, 22 May 2019 19:16:14 +0000"  >&lt;p&gt;We have opened &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12743&quot; title=&quot;Revise shardIdentity update instructions in Restore a Sharded Cluster&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12743&quot;&gt;&lt;del&gt;DOCS-12743&lt;/del&gt;&lt;/a&gt; to update the documentation. Thank you for your report!&lt;/p&gt;</comment>
                            <comment id="2256767" author="eric.sedor" created="Wed, 22 May 2019 19:15:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=genacvali91&quot; class=&quot;user-hover&quot; rel=&quot;genacvali91&quot;&gt;genacvali91&lt;/a&gt; we have confirmed that this is a documentation issue prompted by &lt;a href=&quot;https://jira.mongodb.org/browse/TOOLS-481&quot; title=&quot;Read the admin.system.version collection but do not restore it&quot; class=&quot;issue-link&quot; data-issue-key=&quot;TOOLS-481&quot;&gt;&lt;del&gt;TOOLS-481&lt;/del&gt;&lt;/a&gt; and apologize for that confusion.&lt;/p&gt;</comment>
                            <comment id="2255148" author="eric.sedor" created="Tue, 21 May 2019 22:22:13 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=genacvali91&quot; class=&quot;user-hover&quot; rel=&quot;genacvali91&quot;&gt;genacvali91&lt;/a&gt;. We can reproduce the behavior you are seeing and are determining if this is a documentation issue or if that collection should be restored.&lt;/p&gt;

&lt;p&gt;Thanks for your patience.&lt;/p&gt;</comment>
                            <comment id="2251506" author="genacvali91" created="Sat, 18 May 2019 16:58:34 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Any updates?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="173570">TOOLS-481</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="774781">DOCS-12743</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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 21 May 2019 22:15:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 38 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_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>eric.sedor@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 38 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>
            <customfieldvalue>genacvali91</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huzyxb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hup9nj:</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_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>
                                    <customfieldvalue><![CDATA[eric.sedor@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huzl6n:</customfieldvalue>

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