<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:31:20 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-32802] LVM snapshot restored node is added as member with invalid config error</title>
                <link>https://jira.mongodb.org/browse/SERVER-32802</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi Team,&lt;br/&gt;
Below is the issue :-&lt;br/&gt;
--&amp;gt; Lets say NODE 2 is restored using lvm sanpshot backup of primary &lt;br/&gt;
--&amp;gt; If mongodb is running on primary, lets say NODE1. Then Node2 is added as member of replica set. Then below error is thrown &lt;/p&gt;

&lt;p&gt;REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Error in heartbeat request to NODE2 ; InvalidReplicaSetConfig: Our replica set configuration is invalid or does not include us&lt;/p&gt;

&lt;p&gt;and primary NODE1 starts initial sync with secondary despite of fact  that data is already present in NODE 2 data directory as it is snapshot backup of NODE1&lt;br/&gt;
and NODE2 is in startup phase though data vol is increasing because of initial SYNC&lt;/p&gt;


&lt;p&gt;---&amp;gt;  If mongodb is running on primary, lets say NODE1.We shutdown NODE1 using db.shutdowServer(&lt;/p&gt;
{force:true}
&lt;p&gt;) command. Then, We, start NODE1 and add NODE2 as secondary, It becomes Secondary and inital SYNC is avoided, but throw below error  &lt;/p&gt;

&lt;p&gt;018-01-19T12:57:50.229-0500 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;thread1&amp;#93;&lt;/span&gt; connection accepted from NODE2:60570 #49 (5 connections now open)&lt;br/&gt;
2018-01-19T12:57:50.229-0500 I REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Error in heartbeat request to NODE2:27021; InvalidReplicaSetConfig: Our replica set configuration is invalid or does not include us&lt;br/&gt;
2018-01-19T12:57:50.230-0500 I REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Error in heartbeat request to NODE2:27021; InvalidReplicaSetConfig: Our replica set configuration is invalid or does not include us&lt;br/&gt;
2018-01-19T12:57:50.231-0500 I -        &lt;span class=&quot;error&quot;&gt;&amp;#91;conn49&amp;#93;&lt;/span&gt; end connection NODE2:60570 (6 connections now open)&lt;br/&gt;
2018-01-19T12:57:50.231-0500 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;thread1&amp;#93;&lt;/span&gt; connection accepted from NODE2:60574 #50 (5 connections now open)&lt;br/&gt;
2018-01-19T12:57:50.231-0500 I REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Error in heartbeat request to NODE2:27021; InvalidReplicaSetConfig: Our replica set configuration is invalid or does not include us&lt;br/&gt;
2018-01-19T12:57:50.233-0500 I -        &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50&amp;#93;&lt;/span&gt; end connection NODE2:60574 (6 connections now open)&lt;br/&gt;
2018-01-19T12:57:50.236-0500 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;thread1&amp;#93;&lt;/span&gt; connection accepted from NODE2 #51 (5 connections now open)&lt;br/&gt;
2018-01-19T12:57:50.237-0500 I -        &lt;span class=&quot;error&quot;&gt;&amp;#91;conn51&amp;#93;&lt;/span&gt; end connection NODE2:60578 (6 connections now open)&lt;br/&gt;
2018-01-19T12:57:52.232-0500 I REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Member NODE2:27021 is now in state SECONDARY&lt;/p&gt;


&lt;p&gt;The question is why this error is comming in mongo always and  and what can be done to avoid that. &lt;br/&gt;
REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Error in heartbeat request to NODE2 ; InvalidReplicaSetConfig: Our replica set configuration is invalid or does not include us&lt;/p&gt;

&lt;p&gt;Is there a way i can add node as secondary  without  doing shutdownServer command and  intialsync  using LVM SNAPSHOT BACKUP&lt;/p&gt;</description>
                <environment></environment>
        <key id="485041">SERVER-32802</key>
            <summary>LVM snapshot restored node is added as member with invalid config error</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="mark.agarunov">Mark Agarunov</assignee>
                                    <reporter username="ashutoshpandey89">Ashutosh</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Jan 2018 19:44:36 +0000</created>
                <updated>Thu, 22 Feb 2018 22:27:30 +0000</updated>
                            <resolved>Fri, 19 Jan 2018 20:52:48 +0000</resolved>
                                    <version>3.4.2</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1779537" author="mark.agarunov" created="Fri, 19 Jan 2018 20:52:37 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ashutoshpandey89&quot; class=&quot;user-hover&quot; rel=&quot;ashutoshpandey89&quot;&gt;ashutoshpandey89&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for the report. To avoid seeing the error, you would need to &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/restore-replica-set-from-backup/#copy-database-files-and-restart-mongod-instance&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reconfigure the replicaset&lt;/a&gt; to include the new node.&lt;/p&gt;

&lt;p&gt;Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;. A question like this involving more discussion would be best posted on the mongodb-user group.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 19 Jan 2018 20:52:37 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 3 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ashutoshpandey89</customfieldvalue>
            <customfieldvalue>mark.agarunov</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htod4n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htfu53:</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>
                                

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

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