<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19:26 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-9119] An issue with oplog and a slave in MongoDB 2.4.1</title>
                <link>https://jira.mongodb.org/browse/SERVER-9119</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;m creating this question at Ian Whalen&apos;s suggestion. It may be that some of this will become irrelevant if we decide to convert to replica sets, and I&apos;m submitting it in part in case it might be of use to the MongoDB developers.&lt;/p&gt;

&lt;p&gt;Below is the text of the relevant part of my email to Ian:&lt;/p&gt;

&lt;p&gt;We are getting errors that indicate that our oplog has gone out of sync or something, the dates seem corrupted, and perhaps there is some issue with the slave. We haven&apos;t converted over to Replica set--we are using legacy master-slave replication.&lt;/p&gt;

&lt;p&gt;Our question is: what can we do to fix this situation (see some detailed info below)? Can we do a repair? do we have to restart oplog from scratch? Do we need to just bite the bullet and learn how to upgrade to Replica sets? Notice the &quot;upgradeNeeded&quot;: true from the db.slaves.find() command. I don&apos;t understand that--they are both now on 2.4.1. &lt;/p&gt;

&lt;p&gt;Anyway, thank you so much for your time!&lt;/p&gt;

&lt;p&gt;configured oplog size:   44792.567773437506MB&lt;br/&gt;
log length start to end: 5613.861999999965secs (1.56hrs)&lt;br/&gt;
oplog first event time:  Fri Jan 16 1970 11:15:32 GMT-0600 (CST)&lt;br/&gt;
oplog last event time:   Fri Jan 16 1970 12:49:06 GMT-0600 (CST)&lt;br/&gt;
now:                     Sun Mar 24 2013 18:04:52 GMT-0500 (CDT)&lt;/p&gt;

&lt;p&gt;db.slaves.find()&lt;/p&gt;

&lt;p&gt;{ &quot;_id&quot; : ObjectId(&quot;50f463aebc26d2d32eb20df1&quot;), &quot;host&quot; : &quot;72.233.16.182&quot;, &quot;ns&quot; : &quot;local.oplog.$main&quot;, &quot;syncedTo&quot; : &lt;/p&gt;
{ &quot;t&quot; : 1363746775, &quot;i&quot; : 1 }
&lt;p&gt; }&lt;/p&gt;

&lt;p&gt;{ &quot;_id&quot; : ObjectId(&quot;514ea0359cf7fda50eceafa5&quot;), &quot;config&quot; : &lt;/p&gt;
{ &quot;host&quot; : &quot;72.233.16.182:37402&quot;, &quot;upgradeNeeded&quot; : true }
&lt;p&gt;, &quot;ns&quot; : &quot;local.oplog.$main&quot;, &quot;syncedTo&quot; : &lt;/p&gt;
{ &quot;t&quot; : 1363746785, &quot;i&quot; : 1 }
&lt;p&gt; }&lt;/p&gt;



&lt;p&gt;db.printSlaveReplicationInfo()&lt;/p&gt;

&lt;p&gt;source:   submongo.geekdo.com&lt;/p&gt;

&lt;p&gt;     syncedTo: Fri Jan 16 1970 12:49:06 GMT-0600 (CST)&lt;/p&gt;

&lt;p&gt;         = 1362799568 secs ago (378555.44hrs)&lt;/p&gt;

&lt;p&gt;our oplog seems massively huge too&lt;/p&gt;

&lt;p&gt;43 gb&lt;/p&gt;

&lt;p&gt;In our slave log, we see things like:&lt;/p&gt;

&lt;p&gt;Sun Mar 24 18:10:02.706 &lt;span class=&quot;error&quot;&gt;&amp;#91;replslave&amp;#93;&lt;/span&gt; repl: syncing from host:submongo.geekdo.com&lt;/p&gt;

&lt;p&gt;so it seems to think it is syncing, but we don&apos;t really know whether to trust it.&lt;/p&gt;</description>
                <environment>A virtual machine running CentOS 6.3</environment>
        <key id="69649">SERVER-9119</key>
            <summary>An issue with oplog and a slave in MongoDB 2.4.1</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="3">Duplicate</resolution>
                                        <assignee username="richard.kreuter">Richard Kreuter</assignee>
                                    <reporter username="dakarp">Daniel Karp</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Mar 2013 16:09:03 +0000</created>
                <updated>Wed, 10 Dec 2014 23:05:06 +0000</updated>
                            <resolved>Wed, 27 Mar 2013 21:55:05 +0000</resolved>
                                    <version>2.4.1</version>
                                                    <component>Logging</component>
                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="300264" author="dakarp" created="Wed, 27 Mar 2013 22:00:08 +0000"  >&lt;p&gt;That&apos;s fine! We will look into getting switched over to Replica sets as well.&lt;/p&gt;</comment>
                            <comment id="300260" author="richard@10gen.com" created="Wed, 27 Mar 2013 21:55:05 +0000"  >&lt;p&gt;@Daniel: since it seems this might be a duplicate of a separate issue, I&apos;m resolving this one for now. Feel free to reopen if you have further questions. &lt;/p&gt;</comment>
                            <comment id="298032" author="richard@10gen.com" created="Mon, 25 Mar 2013 17:50:24 +0000"  >&lt;p&gt;Hi Daniel,&lt;/p&gt;

&lt;p&gt;It looks as though there is a reporting error in the shell, which accounts for the timestamp-related weirdness in the output of db.printSlaveReplicationInfo() above. Have a look at &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9085&quot; title=&quot;db.replSetInfo() issue with converting OpTimes to seconds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9085&quot;&gt;&lt;del&gt;SERVER-9085&lt;/del&gt;&lt;/a&gt; for a bit more info and a link to the commit that should fix this error.&lt;/p&gt;

&lt;p&gt;One way to examine the contents of the oplog without using the shell would be to have a look at what mongoexport prints out, e.g.,&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;mongoexport -d local -c &apos;oplog.$main&apos; | head&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;On my system just now, the first line of oplog contents looked l like this:&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;{ &quot;ts&quot; : { &quot;$timestamp&quot; : { &quot;t&quot; : 1364233256, &quot;i&quot; : 1 } }, &quot;op&quot; : &quot;n&quot;, &quot;ns&quot; : &quot;&quot;, &quot;o&quot; : {} }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;And the &quot;t&quot; field inside the timestamp is a number of seconds since 1970.&lt;/p&gt;

&lt;p&gt;As far as the size of the oplog goes, to a first-order approximation the local database&apos;s size should be approximately the same size as the oplog collection. How much space on disk do the local.* files take up on your master node?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="69434">SERVER-9085</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 25 Mar 2013 16:15:48 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 47 weeks 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dakarp</customfieldvalue>
            <customfieldvalue>richard.kreuter</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmzu7:</customfieldvalue>

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

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

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