<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:14:38 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-7466] Replication always failed</title>
                <link>https://jira.mongodb.org/browse/SERVER-7466</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I&apos;m facing a big issue in my production environment.&lt;br/&gt;
I&apos;v moved my standalong existing database into a replica set, and my secondary instance always failed in its initial synchronization phase.&lt;/p&gt;

&lt;p&gt;The failing happend on a collection named record, where indexes are defined below :&lt;br/&gt;
nws_rs_1:PRIMARY&amp;gt; db.record.getIndexSpecs()&lt;br/&gt;
[&lt;br/&gt;
	{&lt;br/&gt;
		&quot;v&quot; : 1,&lt;br/&gt;
		&quot;key&quot; : &lt;/p&gt;
{
			&quot;_id&quot; : 1
		}
&lt;p&gt;,&lt;br/&gt;
		&quot;ns&quot; : &quot;nadb.record&quot;,&lt;br/&gt;
		&quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;&lt;br/&gt;
	},&lt;br/&gt;
	{&lt;br/&gt;
		&quot;v&quot; : 1,&lt;br/&gt;
		&quot;key&quot; : &lt;/p&gt;
{
			&quot;_id.L&quot; : 1,
			&quot;_id.K&quot; : 1
		}
&lt;p&gt;,&lt;br/&gt;
		&quot;unique&quot; : true,&lt;br/&gt;
		&quot;ns&quot; : &quot;nadb.record&quot;,&lt;br/&gt;
		&quot;name&quot; : &quot;&lt;em&gt;id.L_1&lt;/em&gt;_id.K_1&quot;,&lt;br/&gt;
		&quot;dropDups&quot; : true&lt;br/&gt;
	}&lt;br/&gt;
]&lt;/p&gt;

&lt;p&gt;nws_rs_1:PRIMARY&amp;gt; db.record.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;ns&quot; : &quot;nadb.record&quot;,&lt;br/&gt;
	&quot;count&quot; : 1605239,&lt;br/&gt;
	&quot;size&quot; : 4816750020,&lt;br/&gt;
	&quot;avgObjSize&quot; : 3000.643530340342,&lt;br/&gt;
	&quot;storageSize&quot; : 8696713216,&lt;br/&gt;
	&quot;numExtents&quot; : 33,&lt;br/&gt;
	&quot;nindexes&quot; : 2,&lt;br/&gt;
	&quot;lastExtentSize&quot; : 1940869120,&lt;br/&gt;
	&quot;paddingFactor&quot; : 1.0040000005010514,&lt;br/&gt;
	&quot;systemFlags&quot; : 0,&lt;br/&gt;
	&quot;userFlags&quot; : 0,&lt;br/&gt;
	&quot;totalIndexSize&quot; : 145295696,&lt;br/&gt;
	&quot;indexSizes&quot; : &lt;/p&gt;
{
		&quot;_id_&quot; : 88120928,
		&quot;_id.L_1__id.K_1&quot; : 57174768
	}
&lt;p&gt;,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;And the secondary always fails with message:&lt;br/&gt;
Thu Oct 25 11:46:21 &lt;span class=&quot;error&quot;&gt;&amp;#91;repl writer worker 4&amp;#93;&lt;/span&gt;   Fatal Assertion 15915&lt;br/&gt;
(full log trace in uploaded message)&lt;/p&gt;

&lt;p&gt;This is a big issue since I can&apos;t set any replication mechanism !&lt;/p&gt;

&lt;p&gt;Thank you for you help.&lt;/p&gt;

&lt;p&gt;Thomas.&lt;/p&gt;


</description>
                <environment>Ubuntu 12.04 64 bits x86</environment>
        <key id="54304">SERVER-7466</key>
            <summary>Replication always failed</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="thomas.rosenblatt@gmail.com">Thomas Rosenblatt</reporter>
                        <labels>
                            <label>bug</label>
                            <label>replicaset</label>
                    </labels>
                <created>Thu, 25 Oct 2012 09:57:37 +0000</created>
                <updated>Mon, 11 Jul 2016 17:56:21 +0000</updated>
                            <resolved>Mon, 29 Oct 2012 15:09:39 +0000</resolved>
                                    <version>2.2.0</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="179569" author="kristina" created="Fri, 26 Oct 2012 13:54:52 +0000"  >&lt;p&gt;Great, glad it worked out.&lt;/p&gt;

&lt;p&gt;Yes, you should have a unique _id index on every collection if you&apos;re using replication, because replication needs a way to uniquely identify each document.  See the warning here: &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Capped+Collections#CappedCollections-UsageandRestrictions&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Capped+Collections#CappedCollections-UsageandRestrictions&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="179498" author="thomas.rosenblatt@gmail.com" created="Fri, 26 Oct 2012 07:50:20 +0000"  >&lt;p&gt;Hello Kristina,&lt;/p&gt;

&lt;p&gt;Well I finally found a workaround that seems to work.&lt;br/&gt;
I stopped every processes that were written in the db during the startup of the secondary.&lt;/p&gt;

&lt;p&gt;30 minutes after, when secondary was really started and replica was fully set, I restarted all processes, and replication was working just fine !&lt;br/&gt;
So I guess and I hope this issue is related to (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7186&quot; title=&quot;Batched oplog application increases frequency of idempotency violations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7186&quot;&gt;&lt;del&gt;SERVER-7186&lt;/del&gt;&lt;/a&gt;), and that this bug will be removed in the 2.2.1&lt;/p&gt;

&lt;p&gt;I will not try 2.2.1 RC nor downgrading now that my production seems stable, I will first wait for stable 2.2.1 to try.&lt;/p&gt;



&lt;p&gt;Just for info :&lt;br/&gt;
I had some huge collection that I created with _id that is not an index but only a unique composed index (_id.K : 1, _id.L : 1)&lt;br/&gt;
I didn&apos;t want to have an other index to decrease memory usage.&lt;br/&gt;
I first thought that replication was failing because of that, so I created an _id index for that collection but result was not better.&lt;/p&gt;

&lt;p&gt;Are collection without _id index replicable ? &lt;br/&gt;
If not, it would be good to talk about it that in your documentation.&lt;/p&gt;

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

&lt;p&gt;Thomas.&lt;/p&gt;



</comment>
                            <comment id="179275" author="kristina" created="Thu, 25 Oct 2012 20:39:52 +0000"  >&lt;p&gt;There were some issues in 2.2.0 with replication (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7186&quot; title=&quot;Batched oplog application increases frequency of idempotency violations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7186&quot;&gt;&lt;del&gt;SERVER-7186&lt;/del&gt;&lt;/a&gt;) and we weren&apos;t handling initial sync quite right.  I&apos;m not positive that&apos;s what you&apos;re running into, but it&apos;s a strong possibility.  Can you try the 2.2.1 RC at &lt;a href=&quot;http://www.mongodb.org/downloads&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/downloads&lt;/a&gt; or downgrade?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="21145" name="tmp" size="6415" author="thomas.rosenblatt@gmail.com" created="Thu, 25 Oct 2012 09:57:37 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 25 Oct 2012 20:39:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 16 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 16 weeks, 5 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="10020"><![CDATA[Linux]]></customfieldvalue>

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

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

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

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