<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:50:03 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-38790] The secondary of a shard aborting after fassert() failure</title>
                <link>https://jira.mongodb.org/browse/SERVER-38790</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hello everyone.&lt;/p&gt;

&lt;p&gt;I installed mongodb3.4.9 on my computer with centos7.&lt;/p&gt;

&lt;p&gt;I configured mongodb with one shard which had a primary, a secondary and a arbiter, and then inseted data into mongodb through mongos with 10 threads. But the secondary crashed(I tried many times). The error infomation in the log file&#160; is shown below.&lt;/p&gt;

&lt;p&gt;&#160;&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;2018-12-28T10:01:23.530+0800 I REPL&#160; &#160; &#160;[replication-4] Restarting oplog query due to error: OperationFailed: GetMore command executor error: CappedPositionLost: CollectionScan died due to failure to restore tailable cursor posit 2018-12-28T10:01:23.530+0800 I REPL&#160; &#160; &#160;[replication-4] Restarting oplog query due to error: OperationFailed: GetMore command executor error: CappedPositionLost: CollectionScan died due to failure to restore tailable cursor posit &#160; &#160; &#160; &#160; ion. Last seen record id: RecordId(6639858301032998504). Last fetched optime (with hash): \{ ts: Timestamp 1545962482000|9832, t: 1 }[-5405713631010586723]. Restarts remaining: 3 &#160; &#160; 124 2018-12-28T10:01:23.531+0800 I REPL&#160; &#160; &#160;[replication-4] Scheduled new oplog query Fetcher source: localhost:21001 database: local query: \{ find: &quot;oplog.rs&quot;, filter: { ts: { $gte: Timestamp 1545962482000|9832 } }, tailable: true, &#160; &#160; &#160; &#160; oplogReplay: true, awaitData: true, maxTimeMS: 60000, term: 1 } query metadata: \{ $replData: 1, $oplogQueryData: 1, $ssm: { $secondaryOk: true } } active: 1 timeout: 65000ms shutting down?: 0 first: 1 firstCommandScheduler: Remot &#160; &#160; &#160; &#160; eCommandRetryScheduler request: RemoteCommand 175756 -- target:localhost:21001 db:local cmd:\{ find: &quot;oplog.rs&quot;, filter: { ts: { $gte: Timestamp 1545962482000|9832 } }, tailable: true, oplogReplay: true, awaitData: true, maxTimeMS &#160; &#160; &#160; &#160; : 60000, term: 1 } active: 1 callbackHandle.valid: 1 callbackHandle.cancelled: 0 attempt: 1 retryPolicy: RetryPolicyImpl maxAttempts: 1 maxTimeMillis: -1ms &#160; &#160; 125 2018-12-28T10:01:23.872+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] Starting rollback due to OplogStartMissing: Received an empty batch from sync source. &#160; &#160; 126 2018-12-28T10:01:23.872+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] rollback 0 &#160; &#160; 127 2018-12-28T10:01:23.872+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] transition to ROLLBACK &#160; &#160; 128 2018-12-28T10:01:23.872+0800 I NETWORK&#160; [rsBackgroundSync] legacy transport layer closing all connections &#160; &#160; 129 2018-12-28T10:01:23.872+0800 I NETWORK&#160; [rsBackgroundSync] Skip closing connection for connection # 5 &#160; &#160; 130 2018-12-28T10:01:23.872+0800 I NETWORK&#160; [rsBackgroundSync] Skip closing connection for connection # 4 &#160; &#160; 131 2018-12-28T10:01:23.873+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] beginning rollback &#160; &#160; 132 2018-12-28T10:01:23.873+0800 I -&#160; &#160; &#160; &#160; [conn9] end connection 127.0.0.1:58724 (6 connections now open) &#160; &#160; 133 2018-12-28T10:01:23.873+0800 I -&#160; &#160; &#160; &#160; [conn8] end connection 127.0.0.1:58722 (6 connections now open) &#160; &#160; 134 2018-12-28T10:01:23.873+0800 I -&#160; &#160; &#160; &#160; [conn7] end connection 127.0.0.1:58125 (6 connections now open) &#160; &#160; 135 2018-12-28T10:01:23.873+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] rollback 1 &#160; &#160; 136 2018-12-28T10:01:23.873+0800 I -&#160; &#160; &#160; &#160; [conn6] end connection 127.0.0.1:58110 (6 connections now open) &#160; &#160; 137 2018-12-28T10:01:23.874+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] rollback 2 FindCommonPoint &#160; &#160; 138 2018-12-28T10:01:23.874+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] rollback our last optime:&#160; &#160;Dec 28 10:01:22:2668 &#160; &#160; 139 2018-12-28T10:01:23.874+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] rollback their last optime: Dec 28 10:01:23:9de8 &#160; &#160; 140 2018-12-28T10:01:23.874+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] rollback diff in end of log times: -1 seconds &#160; &#160; 141 2018-12-28T10:01:23.961+0800 F REPL&#160; &#160; &#160;[rsBackgroundSync] rollback error RS100 reached beginning of remote oplog &#160; &#160; 142 2018-12-28T10:01:23.961+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync]&#160; &#160;them:&#160; &#160; &#160; localhost:21001 (127.0.0.1) &#160; &#160; 143 2018-12-28T10:01:23.961+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync]&#160; &#160;theirTime: Dec 28 10:01:22 5c2583f2:6201 &#160; &#160; 144 2018-12-28T10:01:23.961+0800 I REPL&#160; &#160; &#160;[rsBackgroundSync] rollback finished &#160; &#160; 145 2018-12-28T10:01:23.961+0800 F REPL&#160; &#160; &#160;[rsBackgroundSync] Unable to complete rollback. A full resync may be needed: UnrecoverableRollbackError: need to rollback, but unable to determine common point between local and remote oplo &#160; &#160; &#160; &#160; g: NoMatchingDocument: RS100 reached beginning of remote oplog [1] @ 18752 &#160; &#160; 146 2018-12-28T10:01:23.961+0800 I -&#160; &#160; &#160; &#160; [rsBackgroundSync] Fatal Assertion 28723 at src/mongo/db/repl/rs_rollback.cpp 915 &#160; &#160; 147 2018-12-28T10:01:23.961+0800 I -&#160; &#160; &#160; &#160; [rsBackgroundSync] &#160; &#160; 148&#160;&#160; &#160; 149 ***aborting after fassert() failure&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="662407">SERVER-38790</key>
            <summary>The secondary of a shard aborting after fassert() failure</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="daniel.hatcher@mongodb.com">Danny Hatcher</assignee>
                                    <reporter username="hnuhchen@sina.com">chen hui</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Dec 2018 06:58:56 +0000</created>
                <updated>Fri, 4 Jan 2019 07:06:37 +0000</updated>
                            <resolved>Fri, 28 Dec 2018 15:10:57 +0000</resolved>
                                    <version>3.4.9</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2105206" author="hnuhchen@sina.com" created="Fri, 4 Jan 2019 07:06:37 +0000"  >&lt;p&gt;Thank you for your answer&lt;/p&gt;</comment>
                            <comment id="2101643" author="daniel.hatcher" created="Fri, 28 Dec 2018 15:10:48 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;From the log snippet you posted, it appears that you are overflowing the oplog of the Primary before the Secondary can adequately catch up. If the Secondary node is unable to find a common point within its oplog and the sync source, then it can no longer function correctly. I recommend increasing the size of the oplog on both the Primary and Secondary and/or change the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/write-concern/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;write concern&lt;/a&gt; of your inserts to &lt;/p&gt;
{w:&quot;majority&quot;}
&lt;p&gt;. This will increase the total time that it takes for your writes to complete but it should help prevent your Secondary from falling off the oplog.&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;. See also our &lt;a href=&quot;https://docs.mongodb.org/manual/support&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Technical Support page&lt;/a&gt; for additional support resources.&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>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, 28 Dec 2018 15:10:48 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 5 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>hnuhchen@sina.com</customfieldvalue>

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

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

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