<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:00 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-6537] Replicaset stop replication</title>
                <link>https://jira.mongodb.org/browse/SERVER-6537</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We get following error in our secondary, this is second time we encounter the problem, we have remove all the data in secondary and let it resync all the data in one week ago and seems fixed. But the problem comes again.&lt;/p&gt;


&lt;p&gt;&quot;errmsg&quot; : &quot;syncTail: 10068 invalid operator: $id, syncing: { ts: Timestamp 1342667002000|51, h: -3142433914917806080, op: \&quot;u\&quot;, ns: \&quot;boc.paper\&quot;, o2: { _id: &lt;/p&gt;
{ $id: \&quot;4fe0050d217042a83c010000\&quot; }
&lt;p&gt; }, o: { $set: &lt;/p&gt;
{ info.difficulty: [ \&quot;1\&quot;, \&quot;2\&quot;, \&quot;3\&quot; ] }
&lt;p&gt; } }&quot;&lt;br/&gt;
                },&lt;/p&gt;</description>
                <environment>OS: Centos 5 x64</environment>
        <key id="44907">SERVER-6537</key>
            <summary>Replicaset stop replication</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="3">Duplicate</resolution>
                                        <assignee username="sverch">Shaun Verch</assignee>
                                    <reporter username="raymond">Raymond</reporter>
                        <labels>
                            <label>replication</label>
                    </labels>
                <created>Fri, 20 Jul 2012 08:38:00 +0000</created>
                <updated>Tue, 16 Nov 2021 13:41:10 +0000</updated>
                            <resolved>Thu, 15 Nov 2012 23:03:27 +0000</resolved>
                                    <version>2.0.3</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="190813" author="sverch" created="Thu, 15 Nov 2012 23:06:06 +0000"  >&lt;p&gt;Hi David,&lt;/p&gt;

&lt;p&gt;For more updates on this, you can follow &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6833&quot; title=&quot;Secondary crashes when replicating a document that the primary accepted (with a field name containing a &amp;quot;$&amp;quot;)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6833&quot;&gt;&lt;del&gt;SERVER-6833&lt;/del&gt;&lt;/a&gt;.  That describes the underlying issue and the fix for that ticket will also fix the behavior you saw here.&lt;/p&gt;

&lt;p&gt;I was able to reproduce it using the php driver given your description, so I&apos;m posting that here:&lt;/p&gt;

&lt;p&gt;&amp;lt;?php&lt;/p&gt;

&lt;p&gt;$m = new Mongo(&quot;localhost:30001&quot;,array(&apos;replicaSet&apos;=&amp;gt;&apos;testreplset&apos;));&lt;br/&gt;
$db = $m-&amp;gt;dollarsign;&lt;br/&gt;
$collection = $db-&amp;gt;dollarsign;&lt;br/&gt;
$obj = array( &quot;_id&quot; =&amp;gt; array( &apos;$foo&apos; =&amp;gt; 1 ) );&lt;br/&gt;
$collection-&amp;gt;insert($obj, array(&quot;safe&quot; =&amp;gt; true));&lt;/p&gt;

&lt;p&gt;?&amp;gt;&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="177650" author="dg@doodle.com" created="Mon, 22 Oct 2012 08:39:18 +0000"  >&lt;p&gt;Unfortunately no, sorry (logrotate took care of that...)&lt;/p&gt;

&lt;p&gt;But I had a close look at the logs when it happened and I don&apos;t remember seeing anything out of the ordinary before that assert (it came &quot;out of the blue&quot;). &lt;/p&gt;</comment>
                            <comment id="176723" author="sverch" created="Thu, 18 Oct 2012 17:20:25 +0000"  >&lt;p&gt;Hi David,&lt;/p&gt;

&lt;p&gt;Thanks for the update.  Do you have any logs from right before the secondary triggered this assert?&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;syncTail: 10068 invalid operator: $oid, syncing: { ts: Timestamp 1348485921000|30, h: -4162345707935058041, op: &quot;i&quot;, ns: &quot;doodle.pollCreatedLinkTracking&quot;, o: { _id: { $oid: &quot;5059a6cf44aef65722ff7302&quot; }, adminEmailLink: 0.0, copiedLink: 0.0, originalLink:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="176540" author="dg@doodle.com" created="Thu, 18 Oct 2012 09:54:18 +0000"  >&lt;p&gt;Never mind the segfault. It turns out that the server in question had a faulty disk that produced garbage. I guess that crash was due to corrupted data from the disk. Sorry for that.&lt;/p&gt;</comment>
                            <comment id="171655" author="sverch" created="Thu, 4 Oct 2012 23:04:05 +0000"  >&lt;p&gt;Thank you for the bug report.  We&apos;re looking into this issue, and will let you know if we need any additional information.&lt;/p&gt;</comment>
                            <comment id="167707" author="dg@doodle.com" created="Tue, 25 Sep 2012 12:16:02 +0000"  >&lt;p&gt;We have hit the same issue with 2.0.7. One of the affected secondaries says:&lt;/p&gt;

&lt;p&gt;syncTail: 10068 invalid operator: $oid, syncing: { ts: Timestamp 1348485921000|30, h: -4162345707935058041, op: &quot;i&quot;, ns: &quot;doodle.pollCreatedLinkTracking&quot;, o: { _id: &lt;/p&gt;
{ $oid: &quot;5059a6cf44aef65722ff7302&quot; }
&lt;p&gt;, adminEmailLink: 0.0, copiedLink: 0.0, originalLink:&lt;/p&gt;

&lt;p&gt;The others just stop replicating.&lt;/p&gt;

&lt;p&gt;My co-worker says:&lt;/p&gt;

&lt;p&gt;works:&lt;br/&gt;
{&lt;br/&gt;
&apos;_a&apos;:&lt;/p&gt;
{&quot;$foo&quot;:1}
&lt;p&gt;,&lt;br/&gt;
b:0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;doesn&apos;t work (it appears that the driver can execute it on the primary, but it will blow up the secondaries):&lt;br/&gt;
{&lt;br/&gt;
&apos;_id&apos;:&lt;/p&gt;
{&quot;$foo&quot;:1}
&lt;p&gt;,&lt;br/&gt;
b:0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;We hit this issue while fiddling around with Rockmongo (uses the PHP driver).&lt;/p&gt;

&lt;p&gt;This is especially annoying because I found no way to re-sync a secondary from the primary (instead of another secondary). Luckily we create LVM snapshots on the primary, thus (I hope) I can recover a secondary using our backup and later all other secondaries from that one...&lt;/p&gt;

&lt;p&gt;Moreover, when I try to stop MongoDB on an affected secondary, it segfaults (but that cound be an unrelated problem):&lt;/p&gt;

&lt;p&gt; Tue Sep 25 13:39:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn340605&amp;#93;&lt;/span&gt; end connection 188.92.145.82:47449&lt;br/&gt;
 Logstream::get called in uninitialized state&lt;br/&gt;
 Tue Sep 25 13:39:15 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn340427&amp;#93;&lt;/span&gt; end connection 188.92.145.81:49001&lt;br/&gt;
 Logstream::get called in uninitialized state&lt;br/&gt;
 Tue Sep 25 13:39:15 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn340429&amp;#93;&lt;/span&gt; end connection 188.92.145.81:49027&lt;br/&gt;
 Logstream::get called in uninitialized state&lt;br/&gt;
 Tue Sep 25 13:39:16 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn340284&amp;#93;&lt;/span&gt; end connection 188.92.145.81:42240&lt;br/&gt;
 Logstream::get called in uninitialized state&lt;br/&gt;
 Tue Sep 25 13:39:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; replSet syncing to: xxx.yyy.com:27017&lt;br/&gt;
 Tue Sep 25 13:39:24 Invalid access at address: 0&lt;/p&gt;

&lt;p&gt; Tue Sep 25 13:39:24 Got signal: 11 (Segmentation fault).&lt;/p&gt;

&lt;p&gt; Tue Sep 25 13:39:24 Backtrace:&lt;br/&gt;
 0xa9609a 0xa9678c 0x7f95660d0ff0 0x5b612f 0x5e08a4 0x5e37f2 0x5b70ec 0x5cd991 0x5c52d3 0x5c5e22 0x5cdd0a 0x5c65bf 0x5c7ff0 0x7a606f 0x7a6b27 0x7a8738 0x823a96 0x825eca 0x827f15 0x827f68 &lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo10abruptQuitEi+0x3aa) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa9609a&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x22c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa9678c&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /lib/libpthread.so.0(+0xeff0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f95660d0ff0&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo15assembleRequestERKSsNS_7BSONObjEiiPKS2_iRNS_7MessageE+0xef) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5b612f&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo14DBClientCursor13_assembleInitERNS_7MessageE+0x84) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5e08a4&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo14DBClientCursor4initEv+0x92) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5e37f2&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo12DBClientBase5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii+0x3ac) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5b70ec&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo18DBClientConnection5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii+0xa1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5cd991&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo17DBClientInterface5findNERSt6vectorINS_7BSONObjESaIS2_EERKSsNS_5QueryEiiPKS2_i+0xa3) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5c52d3&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo17DBClientInterface7findOneERKSsRKNS_5QueryEPKNS_7BSONObjEi+0x72) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5c5e22&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo18DBClientConnection10runCommandERKSsRKNS_7BSONObjERS3_i+0x7a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5cdd0a&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo20DBClientWithCommands4authERKSsS2_S2_RSsb+0xdf) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5c65bf&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo18DBClientConnection4authERKSsS2_S2_RSsb+0x250) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5c7ff0&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo16replAuthenticateEPNS_12DBClientBaseE+0x3cf) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7a606f&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11OplogReader13commonConnectERKSs+0x277) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7a6b27&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11OplogReader7connectESs+0x18) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7a8738&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11ReplSetImpl15_getOplogReaderERNS_11OplogReaderERSs+0x46) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x823a96&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11ReplSetImpl8syncTailEv+0x11a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x825eca&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11ReplSetImpl11_syncThreadEv+0xc5) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x827f15&amp;#93;&lt;/span&gt;&lt;br/&gt;
  /usr/bin/mongod(_ZN5mongo11ReplSetImpl10syncThreadEv+0x48) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x827f68&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="47919">SERVER-6833</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 25 Sep 2012 12:16:02 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 13 weeks, 6 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>dg@doodle.com</customfieldvalue>
            <customfieldvalue>raymond</customfieldvalue>
            <customfieldvalue>sverch</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnuo7:</customfieldvalue>

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

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

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