<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:05 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-1461] master -&gt; slave replication with auth db._adminCommand({serverStatus:1,repl:2}); returns  MasterFirst/Last jan 1 1970 and huge lag sec</title>
                <link>https://jira.mongodb.org/browse/SERVER-1461</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When I setup replication between a master and slave where they are both using auth and run &lt;br/&gt;
 db._adminCommand(&lt;/p&gt;
{serverStatus:1,repl:2}
&lt;p&gt;);&lt;br/&gt;
 in the output i get the following&lt;/p&gt;

&lt;p&gt;&quot;repl&quot; : {&lt;br/&gt;
                &quot;ismaster&quot; : 0,&lt;br/&gt;
                &quot;msg&quot; : &quot;not paired&quot;,&lt;br/&gt;
                &quot;sources&quot; : [&lt;br/&gt;
                        {&lt;br/&gt;
                                &quot;host&quot; : &quot;10.10.0.1&quot;,&lt;br/&gt;
                                &quot;syncedTo&quot; : &lt;/p&gt;
{
                                        &quot;time&quot; : &quot;Thu Jul 22 2010 15:07:37 GMT+0000 (UTC)&quot;,
                                        &quot;inc&quot; : 4717
                                }
&lt;p&gt;,&lt;br/&gt;
                                &quot;masterFirst&quot; : &quot;Thu Jan 01 1970 12:16:47 GMT+0000 (UTC)&quot;,&lt;br/&gt;
                                &quot;masterLast&quot; : &quot;Thu Jan 01 1970 12:16:47 GMT+0000 (UTC)&quot;,&lt;br/&gt;
                                &quot;lagSeconds&quot; : 18446742793942500&lt;br/&gt;
                        }&lt;br/&gt;
                ]&lt;br/&gt;
        },&lt;/p&gt;


&lt;p&gt;To create the issue i start by setting up a master with the following config&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;cat /etc/mongod.conf&lt;br/&gt;
dbpath = /db/mongodb&lt;br/&gt;
logpath = /db/logs/mongodb.log&lt;br/&gt;
fork = true&lt;br/&gt;
bind_ip = 0.0.0.0&lt;br/&gt;
master = true&lt;br/&gt;
directoryperdb = true&lt;br/&gt;
syncdelay = 5&lt;br/&gt;
oplogSize = 51200&lt;br/&gt;
auth = true&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;then log into the admin database locally create an admin user, then auth and switch to the local database and create the repl user.&lt;/p&gt;

&lt;p&gt;Then start a slave with the following config&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;cat /etc/mongod.conf&lt;br/&gt;
dbpath = /db/mongodb&lt;br/&gt;
logpath = /db/logs/mongodb.log&lt;br/&gt;
fork = true&lt;br/&gt;
bind_ip = 0.0.0.0&lt;br/&gt;
slave = true&lt;br/&gt;
source = 10.10.0.1&lt;br/&gt;
directoryperdb = true&lt;br/&gt;
syncdelay = 5&lt;br/&gt;
auth = true&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Login and create the local repl user.&lt;/p&gt;

&lt;p&gt;Import some data on the master&lt;/p&gt;

&lt;p&gt;then run &lt;br/&gt;
&amp;gt; db._adminCommand(&lt;/p&gt;
{serverStatus:1,repl:2}
&lt;p&gt;);&lt;br/&gt;
and get the output above&lt;/p&gt;

&lt;p&gt;Logs are attached&lt;/p&gt;
</description>
                <environment>cent os 5.3  &lt;br/&gt;
&amp;gt; db.serverBuildInfo()  &lt;br/&gt;
{&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;version&amp;quot; : &amp;quot;1.4.4&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;gitVersion&amp;quot; : &amp;quot;9dcac11bd72c7cb34ca278313f033efcdd4908eb&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;sysInfo&amp;quot; : &amp;quot;Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;bits&amp;quot; : 64,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;ok&amp;quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; </environment>
        <key id="12512">SERVER-1461</key>
            <summary>master -&gt; slave replication with auth db._adminCommand({serverStatus:1,repl:2}); returns  MasterFirst/Last jan 1 1970 and huge lag sec</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="aaron">Aaron Staple</assignee>
                                    <reporter username="ddcbyrona">Byron Albert</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Jul 2010 15:20:31 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:11 +0000</updated>
                            <resolved>Mon, 16 Aug 2010 21:00:28 +0000</resolved>
                                    <version>1.4.4</version>
                                    <fixVersion>1.7.0</fixVersion>
                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="16951" author="auto" created="Mon, 16 Aug 2010 21:02:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;astaple&apos;, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1461&quot; title=&quot;master -&amp;gt; slave replication with auth db._adminCommand({serverStatus:1,repl:2}); returns  MasterFirst/Last jan 1 1970 and huge lag sec&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1461&quot;&gt;&lt;del&gt;SERVER-1461&lt;/del&gt;&lt;/a&gt; auth when getting remote authlog info&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/5cfa013077c4a4d4f59dbbff6ec00f8bf6024713&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/5cfa013077c4a4d4f59dbbff6ec00f8bf6024713&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10309" name="mongo-logs.tgz" size="9811" author="ddcbyrona" created="Thu, 22 Jul 2010 15:20:31 +0000"/>
                    </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>Mon, 16 Aug 2010 21:02:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 27 weeks, 2 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>
                            13 years, 27 weeks, 2 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>aaron</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>ddcbyrona</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpj6f:</customfieldvalue>

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

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

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