<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:14 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-3155] --fastsync + rs.add() allows for inconsistent data</title>
                <link>https://jira.mongodb.org/browse/SERVER-3155</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The attached script can be run on a single instance for ease of reproduction. Script is complex, basic premise below.&lt;/p&gt;

&lt;p&gt;Basic Repro&lt;br/&gt;
======&lt;br/&gt;
 (a) Start replica set nodes with --fastsync and slightly different data&lt;br/&gt;
 (b) Configuring with rs.init(cfg) =&amp;gt; fails&lt;br/&gt;
 (c) Configuring with rs.init() + rs.add(...) + rs.add(...) =&amp;gt; succeeds&lt;/p&gt;

&lt;p&gt;Problem #1&lt;br/&gt;
======&lt;br/&gt;
Step (b) is failing with the following message. &lt;br/&gt;
This does not jive with the fact that I &lt;b&gt;can&lt;/b&gt; add them one at a time.&lt;br/&gt;
{&lt;br/&gt;
	&quot;errmsg&quot; : &quot;couldn&apos;t initiate : member localhost:6901 has data already, cannot initiate set.  All members except initiator must be empty.&quot;,&lt;br/&gt;
	&quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Also, I have --fastsync on. Why can&apos;t I start a replica set with known &lt;b&gt;good&lt;/b&gt; data?&lt;/p&gt;

&lt;p&gt;Problem #2&lt;br/&gt;
======&lt;br/&gt;
Step (c) is actually succeeding even though the data is different.&lt;/p&gt;

&lt;p&gt;Expected resolutions&lt;br/&gt;
======&lt;br/&gt;
#1: Consistency. &lt;br/&gt;
The following two should behave the same:&lt;br/&gt;
 1. rs.init( &lt;span class=&quot;error&quot;&gt;&amp;#91;a,b,c&amp;#93;&lt;/span&gt; )&lt;br/&gt;
 2. rs.init( &lt;span class=&quot;error&quot;&gt;&amp;#91;a&amp;#93;&lt;/span&gt; ), rs.reconfig( &lt;span class=&quot;error&quot;&gt;&amp;#91;a,b&amp;#93;&lt;/span&gt; ), rs.reconfig( &lt;span class=&quot;error&quot;&gt;&amp;#91;a,b,c&amp;#93;&lt;/span&gt; )&lt;/p&gt;

&lt;p&gt;Both of these should fail if the data does not match.&lt;/p&gt;

&lt;p&gt;#2: Bring up new sets with existing data. &lt;br/&gt;
If &lt;span class=&quot;error&quot;&gt;&amp;#91;a,b,c&amp;#93;&lt;/span&gt; have the same data files, then rs.init( &lt;span class=&quot;error&quot;&gt;&amp;#91;a,b,c&amp;#93;&lt;/span&gt; ) should work.&lt;/p&gt;</description>
                <environment></environment>
        <key id="17570">SERVER-3155</key>
            <summary>--fastsync + rs.add() allows for inconsistent data</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="kristina">Kristina Chodorow</assignee>
                                    <reporter username="gatesvp">Gaetan Voyer-Perrault</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 May 2011 23:52:23 +0000</created>
                <updated>Tue, 11 Dec 2018 16:15:43 +0000</updated>
                            <resolved>Mon, 13 Jun 2011 16:29:10 +0000</resolved>
                                    <version>1.8.1</version>
                                    <fixVersion>1.9.1</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="37295" author="kristina" created="Mon, 13 Jun 2011 16:28:34 +0000"  >&lt;p&gt;I&apos;ve made a new ticket for the initiate() vs. add() behavior discrepancy.&lt;/p&gt;</comment>
                            <comment id="34802" author="kristina" created="Fri, 27 May 2011 12:24:47 +0000"  >&lt;p&gt;I don&apos;t think Problem #2 is fixable, the basic premise of fastsync is that you have a known good set of data that the DB doesn&apos;t have to check.  If you don&apos;t, then you have to resync.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="18216">SERVER-3250</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="11948" name="rs_fastsync_test.sh" size="4056" author="gatesvp" created="Thu, 26 May 2011 23:52:23 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 27 May 2011 12:24:47 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 36 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>gatesvp</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroz3z:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21182</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|hsnz7r:</customfieldvalue>

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