<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:28:28 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-12410] the lockTime value is bigger than the totalTime value in globalLock metrics of serverStatus()</title>
                <link>https://jira.mongodb.org/browse/SERVER-12410</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In a three-nodes replicaset, one primary and two secondaries.&lt;br/&gt;
x:SECONDARY&amp;gt; rs.config()&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : &quot;x&quot;,&lt;br/&gt;
        &quot;version&quot; : 7,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 3,
                        &quot;host&quot; : &quot;10.136.24.36:27032&quot;,
                        &quot;priority&quot; : 2
                }
&lt;p&gt;,&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 4,
                        &quot;host&quot; : &quot;10.136.24.38:27032&quot;
                }
&lt;p&gt;,&lt;/p&gt;
                {
                        &quot;_id&quot; : 5,
                        &quot;host&quot; : &quot;10.136.24.24:27032&quot;
                }
&lt;p&gt;        ]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Using db.serverStatus().globalLock to show lock time on all secondary nodes. Node 10.136.24.24, the lockTime value is bigger than the totalTime value. Noe 10.136.24.38 is correct. So what&apos;s the problem? Any ideas. Thanks!&lt;/p&gt;

&lt;p&gt;NODE 10.136.24.24&lt;br/&gt;
x:SECONDARY&amp;gt; db.serverStatus().globalLock&lt;br/&gt;
{&lt;br/&gt;
        &quot;totalTime&quot; : NumberLong(&quot;1794581793000&quot;),&lt;br/&gt;
        &quot;lockTime&quot; : NumberLong(&quot;18452882937173&quot;),&lt;br/&gt;
        &quot;currentQueue&quot; : &lt;/p&gt;
{
                &quot;total&quot; : 0,
                &quot;readers&quot; : 0,
                &quot;writers&quot; : 0
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;activeClients&quot; : &lt;/p&gt;
{
                &quot;total&quot; : 1,
                &quot;readers&quot; : 1,
                &quot;writers&quot; : 0
        }
&lt;p&gt;}&lt;/p&gt;


&lt;p&gt;NODE 10.136.24.38&lt;br/&gt;
x:SECONDARY&amp;gt; db.serverStatus().globalLock&lt;br/&gt;
{&lt;br/&gt;
        &quot;totalTime&quot; : NumberLong(&quot;1796619409000&quot;),&lt;br/&gt;
        &quot;lockTime&quot; : NumberLong(&quot;9604218338&quot;),&lt;br/&gt;
        &quot;currentQueue&quot; : &lt;/p&gt;
{
                &quot;total&quot; : 0,
                &quot;readers&quot; : 0,
                &quot;writers&quot; : 0
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;activeClients&quot; : &lt;/p&gt;
{
                &quot;total&quot; : 2,
                &quot;readers&quot; : 2,
                &quot;writers&quot; : 0
        }
&lt;p&gt;}&lt;/p&gt;</description>
                <environment>OS: rhel 5.5 x64&lt;br/&gt;
Mongodb: mongodb-linux-x86_64-2.4.8.tgz</environment>
        <key id="106742">SERVER-12410</key>
            <summary>the lockTime value is bigger than the totalTime value in globalLock metrics of serverStatus()</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="popgo">Jianfeng Xu</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 Jan 2014 02:14:30 +0000</created>
                <updated>Wed, 20 May 2015 10:58:25 +0000</updated>
                            <resolved>Fri, 23 May 2014 17:09:04 +0000</resolved>
                                    <version>2.4.8</version>
                                                    <component>Diagnostics</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="594601" author="ramon.fernandez" created="Fri, 23 May 2014 17:01:54 +0000"  >&lt;p&gt;Hi Jianfeng,&lt;/p&gt;

&lt;p&gt;I haven&apos;t heard back from you for some time, so I&apos;m going to mark this ticket as resolved. If this is still an issue for you, feel free to re-open and provide additional information.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="584897" author="ramon.fernandez" created="Thu, 15 May 2014 14:49:46 +0000"  >&lt;p&gt;Hi Jianfeng,&lt;/p&gt;

&lt;p&gt;we haven&apos;t head from you in over two weeks. Have you had a chance to replace ntpdate with a NTP daemon and observe what happens? If you have, can you please confirm whether the behavior you describe goes away?&lt;/p&gt;</comment>
                            <comment id="567444" author="ramon.fernandez" created="Tue, 29 Apr 2014 22:21:01 +0000"  >&lt;p&gt;Hi Jianfeng,&lt;/p&gt;

&lt;p&gt;I can get the totalTime counter to be lower than globalLock by setting the clock backwards a few seconds using the date command, but over time the the totalTime counter grows bigger than globalLock &amp;#8211; so I&apos;m wondering whether this counter discrepancy you&apos;re observing persists over time, or if it goes away after a few minutes.&lt;/p&gt;

&lt;p&gt;In other words, if ntpdate makes the clock jump backwards (you can use &quot;ntpdate -s&quot; to see in syslog what ntpdate is doing) then I&apos;d say what you&apos;re seeing is expected. If this is an issue for you I&apos;d recommend you use a NTP daemon to make the clock drift and avoid these sudden jumps.&lt;/p&gt;</comment>
                            <comment id="541948" author="popgo" created="Wed, 9 Apr 2014 09:39:43 +0000"  >&lt;p&gt;Hi Stephen,&lt;/p&gt;

&lt;p&gt;We use ntpdate to synchronise the clocks to a ntpd server on all the rs nodes in every three hours. Like this:&lt;br/&gt;
0 */3 * * * /usr/sbin/ntpdate 10.136.1.100;clock --systohc&lt;/p&gt;

&lt;p&gt;And all the rs nodes are running on the real machine. Thanks!&lt;/p&gt;</comment>
                            <comment id="539646" author="thomasr" created="Mon, 7 Apr 2014 19:49:16 +0000"  >&lt;p&gt;Hi Jianfeng,&lt;/p&gt;

&lt;p&gt;Is this still an issue for you? If so, can you answer Stephen&apos;s questions above? We&apos;d like to find out what could be causing the difference you are seeing and our current hypothesis is that it could be related to clock skew or small clock adjustments.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="518101" author="stennie" created="Tue, 18 Mar 2014 03:59:33 +0000"  >&lt;p&gt;Hi Jianfeng,&lt;/p&gt;

&lt;p&gt;I&apos;m wondering if perhaps the odd times are due to clock skew/adjustments (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4740&quot; title=&quot;Use monotonic clock sources for Timer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4740&quot;&gt;&lt;del&gt;SERVER-4740&lt;/del&gt;&lt;/a&gt;/&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8475&quot; title=&quot;Small clock skew with NTP can give strange locked values on queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8475&quot;&gt;&lt;del&gt;SERVER-8475&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;A few questions:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Are you using NTP to synchronise the clocks on these servers? If so, can you describe the method you use (ntpd, ntpdate, ...)?&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Are these servers VMs? If so, what type of VM is being used (KVM, Xen, EC2, ... )?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="496891" author="popgo" created="Tue, 11 Feb 2014 02:18:14 +0000"  >&lt;p&gt;Hi Dan&lt;br/&gt;
I restarted this node and the stats had be reset. But after a while, the problem is raised again. Can u analyze the problem by the attach db.serverStatus() output file.Thanks.&lt;/p&gt;</comment>
                            <comment id="484675" author="dan@10gen.com" created="Tue, 21 Jan 2014 04:38:36 +0000"  >&lt;p&gt;That output looks normal and the global lock time reported in the output is consistent (reported in &quot;.&quot; of the locks section).  I can&apos;t think of any known bugs related to this symptom.  If everything is functioning normally aside from this stat, I don&apos;t think it&apos;s anything to worry about.  The stats will only  be reset with a restart of the server &amp;#8211; please re-post if you see this behavior again.&lt;/p&gt;</comment>
                            <comment id="484657" author="popgo" created="Tue, 21 Jan 2014 02:35:56 +0000"  >&lt;p&gt;Please look at the attach file locks.txt. Thanks.&lt;/p&gt;</comment>
                            <comment id="484627" author="dan@10gen.com" created="Mon, 20 Jan 2014 23:55:43 +0000"  >&lt;p&gt;can you attach the results of db.serverStatus().locks as well?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="37574" name="db.serverStatus().txt" size="10094" author="popgo" created="Tue, 11 Feb 2014 02:20:34 +0000"/>
                            <attachment id="36463" name="locks.txt" size="3373" author="popgo" created="Tue, 21 Jan 2014 02:35:56 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 20 Jan 2014 23:55:43 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 38 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>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>popgo</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
            <customfieldvalue>thomas.rueckstiess@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm3kv:</customfieldvalue>

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

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

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