<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:47:58 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-38103] sync from special position</title>
                <link>https://jira.mongodb.org/browse/SERVER-38103</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;current status&lt;/p&gt;

&lt;p&gt;primary-secondary-arbiter (1:1:1)&lt;/p&gt;

&lt;p&gt;1) secondary server fails&lt;br/&gt;
2) data size 2TB&lt;br/&gt;
3) we cannot initial sync because of data size so big&lt;br/&gt;
4) we have dump backup with option --oplog&lt;/p&gt;

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

&lt;p&gt;I want to do below&lt;br/&gt;
1) in failed secondary &lt;br/&gt;
rm data directory &lt;br/&gt;
MongoDB start&lt;br/&gt;
mongorestore with option --oplogReplay --&amp;gt; success&lt;/p&gt;

&lt;p&gt;2) in primary &lt;br/&gt;
rs.add(secondary) &lt;br/&gt;
--&amp;gt; but start to initial sync &lt;br/&gt;
--&amp;gt; i want to sync after dump last position (how can i do ?) &lt;/p&gt;

&lt;p&gt;in case of Mysql &lt;/p&gt;


&lt;p&gt;change master &lt;br/&gt;
...&lt;br/&gt;
master_log_file=&apos;binary_log.000002&apos;, master_log_pos=120; --&amp;gt; i can begin to replicate from special position that i want&lt;/p&gt;</description>
                <environment></environment>
        <key id="632825">SERVER-38103</key>
            <summary>sync from special position</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="daniel.hatcher@mongodb.com">Danny Hatcher</assignee>
                                    <reporter username="mingyu.lee@linecorp.com">lee mingyu</reporter>
                        <labels>
                    </labels>
                <created>Tue, 13 Nov 2018 05:20:43 +0000</created>
                <updated>Tue, 16 Nov 2021 18:29:50 +0000</updated>
                            <resolved>Tue, 20 Nov 2018 16:47:50 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2067964" author="daniel.hatcher" created="Tue, 20 Nov 2018 16:47:44 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Unfortunately, your proposed plan has not been tested by us so we cannot prove that it will work. I recommend that you follow one of our documented methods on &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/resync-replica-set-member/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;resyncing a member of a replica set&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion in the future please post on the &lt;a href=&quot;http://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;http://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-users group.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                            <comment id="2067331" author="mingyu.lee@linecorp.com" created="Tue, 20 Nov 2018 01:23:25 +0000"  >&lt;p&gt;I think that replication is based on oplog query&#160;&lt;/p&gt;

&lt;p&gt;the secondary will&#160; request primary &#160;bigger oplog entry than&#160; already has&lt;/p&gt;

&lt;p&gt;if secondary has a special optime in local db&#160;&#160;i think that a inital sync&#160;is not started&#160;&lt;/p&gt;</comment>
                            <comment id="2066928" author="daniel.hatcher" created="Mon, 19 Nov 2018 20:12:03 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Unfortunately, it is not possible to use &lt;tt&gt;mongorestore&lt;/tt&gt; to replace an initial sync when adding a node back into a replica set. Thus, if you attempt your plan an initial sync will still be performed when you add the node back into the replica set.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                            <comment id="2065857" author="mingyu.lee@linecorp.com" created="Mon, 19 Nov 2018 01:10:37 +0000"  >&lt;p&gt;thank you for your explanation&lt;/p&gt;

&lt;p&gt;I am not sure whether I can use rsync and restart in some productions&lt;/p&gt;

&lt;p&gt;though I don&apos;t test yet&lt;/p&gt;

&lt;p&gt;I try imagination&lt;br/&gt;
after mongorestore with option --oplogReplay &lt;br/&gt;
step 1) I backed up with option(--oplog) , There was oplog(oplog.bson) , I think that I can check last oplog document&lt;br/&gt;
step 2) find oplog document (with step 1: last oplog document) in primary&lt;/p&gt;

&lt;p&gt;step 3) delete all oplog contents in recovery DB&lt;/p&gt;

&lt;p&gt;step 4) insert oplog contents(step 2) in recovery db&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2063092" author="daniel.hatcher" created="Thu, 15 Nov 2018 14:19:39 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Unfortunately, per our documentation on &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/resync-replica-set-member/index.html#sync-by-copying-data-files-from-another-member&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;resyncing a member of a replicaset by copying data files&lt;/a&gt;, a &lt;tt&gt;mongodump&lt;/tt&gt; backup can not replace the process of an initial sync. While we are working on some methods to improve our initial sync process, the current alternative is to &lt;a href=&quot;https://docs.mongodb.com/manual/core/backups/#back-up-by-copying-underlying-data-files&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;copy the data files from a healthy node&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;If you do not have the ability to take a filesystem snapshot or to halt the Primary node for a significant period of time, many customers use an iterative &lt;tt&gt;rsync&lt;/tt&gt; approach to copy the data from a running process. An iterative &lt;tt&gt;rsync&lt;/tt&gt; is done by running the command multiple times. Each time the length of the run should get shorter as rsync will update the data files that have been changed but leave the ones that weren&apos;t. When the length of the run is short, then you would stop the Primary process, run one last rsync, then start the Primary and Secondary processes up.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;Danny&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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 15 Nov 2018 14:19:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 12 weeks, 1 day 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 12 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>daniel.hatcher@mongodb.com</customfieldvalue>
            <customfieldvalue>mingyu.lee@linecorp.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hucpjr:</customfieldvalue>

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

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