<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:21:02 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-29490] mongodb secondary keep lagging</title>
                <link>https://jira.mongodb.org/browse/SERVER-29490</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Mongodb secondary keep lag of time &amp;#8211;   The total count is not the same. but the latest 10 records are the same.&lt;/p&gt;

&lt;p&gt;financeset:PRIMARY&amp;gt; db.user_account.count()&lt;br/&gt;
694053&lt;br/&gt;
financeset:PRIMARY&amp;gt; new Date()&lt;br/&gt;
ISODate(&quot;2017-06-07T10:37:09.718Z&quot;)&lt;/p&gt;

&lt;p&gt;financeset:SECONDARY&amp;gt; db.user_account.count()&lt;br/&gt;
694047&lt;br/&gt;
financeset:SECONDARY&amp;gt; new Date()&lt;br/&gt;
ISODate(&quot;2017-06-07T10:37:19.889Z&quot;)&lt;/p&gt;

&lt;p&gt;financeset:PRIMARY&amp;gt; new Date()&lt;br/&gt;
ISODate(&quot;2017-06-07T10:38:56.093Z&quot;)&lt;br/&gt;
financeset:PRIMARY&amp;gt; db.user_account.count()&lt;br/&gt;
694054&lt;/p&gt;

&lt;p&gt;financeset:SECONDARY&amp;gt; db.user_account.count()&lt;br/&gt;
694048&lt;/p&gt;

&lt;p&gt;And PRIMARY user_account  - SECONDARY(puma) user_account = 6 (for a quite long period, always around 5~6)&lt;/p&gt;



&lt;p&gt;financeset:SECONDARY&amp;gt; db.user_account.find({},{_id:-1}).limit(8)&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;54ce4fac79337f164b365040&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54f2f90bf4db4b5013e63a1d&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54ceede36f48531b4bd2760a&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54cef8d079337f164b36505a&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54cf84cfe8f067d8cea97991&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54cfa6fe489ba090b7a77c04&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54cfb330489ba090b7a77c07&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54d03dab279657ea64b62c4f&quot;) }

&lt;p&gt;financeset:PRIMARY&amp;gt; db.user_account.find({},{_id:-1}).limit(8)&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;54ce4fac79337f164b365040&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54f2f90bf4db4b5013e63a1d&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54ceede36f48531b4bd2760a&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54cef8d079337f164b36505a&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54cf84cfe8f067d8cea97991&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54cfa6fe489ba090b7a77c04&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54cfb330489ba090b7a77c07&quot;) }
{ &quot;_id&quot; : ObjectId(&quot;54d03dab279657ea64b62c4f&quot;) }

&lt;p&gt;Also , another secondary has similar phenomenon. &lt;/p&gt;

&lt;p&gt;financeset:PRIMARY&amp;gt; db.printSlaveReplicationInfo()&lt;br/&gt;
source: gentoo.local:37017&lt;br/&gt;
	syncedTo: Wed Jun 07 2017 18:37:27 GMT+0800 (CST)&lt;br/&gt;
	2 secs (0 hrs) behind the primary&lt;br/&gt;
source: puma.local:37017&lt;br/&gt;
	syncedTo: Wed Jun 07 2017 18:37:27 GMT+0800 (CST)&lt;br/&gt;
	2 secs (0 hrs) behind the primary&lt;br/&gt;
source: dolphin.local:37017&lt;br/&gt;
	syncedTo: Wed Jun 07 2017 17:39:09 GMT+0800 (CST)&lt;br/&gt;
	3500 secs (0.97 hrs) behind the primary&lt;br/&gt;
source: 121.32.55.xxx:37017&lt;br/&gt;
	syncedTo: Wed Jun 07 2017 17:37:29 GMT+0800 (CST)&lt;br/&gt;
	3600 secs (1 hrs) behind the primary&lt;/p&gt;


&lt;p&gt; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://oqln5pzeb.bkt.clouddn.com/17-6-7/43300817.jpg&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;br/&gt;
According to  Ref blog: &lt;a href=&quot;https://blog.mlab.com/2013/03/replication-lag-the-facts-of-life/#What_is_replication_lag&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://blog.mlab.com/2013/03/replication-lag-the-facts-of-life/#What_is_replication_lag&lt;/a&gt;&lt;br/&gt;
And &lt;a href=&quot;https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-autoresync&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-autoresync&lt;/a&gt;&lt;br/&gt;
Since we&#8217;re not master slave , we don&#8217;t think the --autoresync option help.&lt;/p&gt;

&lt;p&gt;ENV info&lt;/p&gt;

&lt;p&gt;#puma is secondary&lt;br/&gt;
kkk@puma:~$ free -m&lt;br/&gt;
              total        used        free      shared  buff/cache   available&lt;br/&gt;
Mem:          96670       39936         575          35       56158       56474&lt;br/&gt;
Swap:         65523        6536       58987&lt;/p&gt;

&lt;p&gt;The env is local network. Cpu &amp;amp; network &amp;amp; disk is mostly idle.&lt;/p&gt;

&lt;p&gt;kkk@tiger:~$ mongod --version&lt;br/&gt;
db version v3.2.10&lt;br/&gt;
kkk@puma:~$ mongod --version&lt;br/&gt;
db version v3.2.10&lt;br/&gt;
build environment:&lt;br/&gt;
    distmod: ubuntu1404&lt;br/&gt;
    distarch: x86_64&lt;br/&gt;
    target_arch: x86_64&lt;/p&gt;



&lt;p&gt;We don&#8217;t see weird log in secondary log.&lt;/p&gt;</description>
                <environment>ubuntu 1404</environment>
        <key id="391166">SERVER-29490</key>
            <summary>mongodb secondary keep lagging</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="-1">Unassigned</assignee>
                                    <reporter username="Wade">Wade [X]</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Jun 2017 12:36:38 +0000</created>
                <updated>Wed, 7 Jun 2017 20:30:47 +0000</updated>
                            <resolved>Wed, 7 Jun 2017 20:30:47 +0000</resolved>
                                    <version>3.2.14</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1590268" author="thomas.schubert" created="Wed, 7 Jun 2017 20:30:47 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Wade&quot; class=&quot;user-hover&quot; rel=&quot;Wade&quot;&gt;Wade&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for your report. 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;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;Kind regards,&lt;br/&gt;
Thomas&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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 7 Jun 2017 20:30:47 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 36 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>Wade</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht8pz3:</customfieldvalue>

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

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