<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:23:29 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-10560] bad offset:-33553922</title>
                <link>https://jira.mongodb.org/browse/SERVER-10560</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;There is some thing wrong with my replication set When I insert data with java:&lt;/p&gt;

&lt;p&gt;sh0:PRIMARY&amp;gt; rs.status()&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;sh0&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2013-08-19T05:37:36Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 1,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 1,&lt;br/&gt;
                        &quot;name&quot; : &quot;192.168.69.43:10000&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 1,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 256710,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1376721151,
                                &quot;i&quot; : 167
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2013-08-17T06:32:31Z&quot;),&lt;br/&gt;
                        &quot;self&quot; : true&lt;br/&gt;
                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 2,&lt;br/&gt;
                        &quot;name&quot; : &quot;192.168.69.44:10000&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 2,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 252135,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1376721151,
                                &quot;i&quot; : 167
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2013-08-17T06:32:31Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2013-08-19T05:37:35Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2013-08-19T05:37:35Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 0,&lt;br/&gt;
                        &quot;lastHeartbeatMessage&quot; : &quot;db exception in producer: 10320 BSONElement: bad type -2&quot;,&lt;br/&gt;
                        &quot;syncingTo&quot; : &quot;192.168.69.43:10000&quot;&lt;br/&gt;
                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 3,&lt;br/&gt;
                        &quot;name&quot; : &quot;192.168.69.45:10000&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 2,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 256659,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1376721151,
                                &quot;i&quot; : 167
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2013-08-17T06:32:31Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2013-08-19T05:37:35Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2013-08-19T05:37:35Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 0,&lt;br/&gt;
                        &quot;lastHeartbeatMessage&quot; : &quot;db exception in producer: 10320 BSONElement: bad type -2&quot;,&lt;br/&gt;
                        &quot;syncingTo&quot; : &quot;192.168.69.43:10000&quot;&lt;br/&gt;
                }&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;This is the error log comes from the primary:&lt;/p&gt;

&lt;p&gt;Mon Aug 19 13:26:58.055 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn18900&amp;#93;&lt;/span&gt; assertion 13440 bad offset:-33553922 accessing file: /mongodb/scheme2/sh0/data/local.&lt;br/&gt;
1 - consider repairing database ns:local.oplog.rs query:{}&lt;br/&gt;
Mon Aug 19 13:26:58.063 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn18900&amp;#93;&lt;/span&gt; command local.$cmd command: &lt;/p&gt;
{ repairDatabase: 1.0 }
&lt;p&gt; ntoreturn:1 keyUpdates:0 locks(mi&lt;br/&gt;
cros) W:357442 reslen:208 357ms&lt;br/&gt;
Mon Aug 19 13:27:10.025 &lt;span class=&quot;error&quot;&gt;&amp;#91;LockPinger&amp;#93;&lt;/span&gt; cluster 192.168.69.43:20000,192.168.69.44:20000,192.168.69.45:20000 pinged successfu&lt;br/&gt;
lly at Mon Aug 19 13:27:09 2013 by distributed lock pinger &apos;192.168.69.43:20000,192.168.69.44:20000,192.168.69.45:20000/m&lt;br/&gt;
ongo_43:10000:1376661629:1699669244&apos;, sleeping for 30000ms&lt;/p&gt;


&lt;p&gt;The log is from one of my secondary:&lt;/p&gt;

&lt;p&gt;Mon Aug 19 13:32:07.171 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsBackgroundSync&amp;#93;&lt;/span&gt; replSet db exception in producer: 10320 BSONElement: bad type -2&lt;br/&gt;
Mon Aug 19 13:32:17.171 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsBackgroundSync&amp;#93;&lt;/span&gt; replSet syncing to: 192.168.69.43:10000&lt;br/&gt;
Mon Aug 19 13:32:17.174 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsBackgroundSync&amp;#93;&lt;/span&gt; Assertion: 10320:BSONElement: bad type -2&lt;br/&gt;
0xdd2331 0xd93c6b 0x6eabc9 0xba72d9 0xba7add 0xbac1b9 0xbad31d 0xe1aad9 0x3c3e007851 0x3c3dce890d&lt;br/&gt;
 mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xdd2331&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod(_ZN5mongo11msgassertedEiPKc+0x9b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd93c6b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod(_ZNK5mongo11BSONElement4sizeEv+0x1f9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6eabc9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod(_ZN5mongo7replset14BackgroundSync7isStaleERNS_11OplogReaderERNS_7BSONObjE+0x319) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xba72d9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod(_ZN5mongo7replset14BackgroundSync14getOplogReaderERNS_11OplogReaderE+0x36d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xba7add&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod(_ZN5mongo7replset14BackgroundSync7produceEv+0x39) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xbac1b9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod(_ZN5mongo7replset14BackgroundSync14producerThreadEv+0x2d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xbad31d&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;So,I cant&apos;t insert data again,After running the command  db.repairDatabase(),the problem still exists.&lt;/p&gt;

&lt;p&gt;sh0:PRIMARY&amp;gt; db.oplog.rs.find()&lt;br/&gt;
error: {&lt;br/&gt;
        &quot;$err&quot; : &quot;bad offset:-33553922 accessing file: /mongodb/scheme2/sh0/data/local.1 - consider repairing database&quot;,&lt;br/&gt;
        &quot;code&quot; : 13440&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;I think there is something wrong with the oplogy ,but I don&apos;t how to deal.Someone give my a hand ?&lt;/p&gt;

</description>
                <environment>OS:RHEL 6.4 6 bit&lt;br/&gt;
Hardware: Vmware</environment>
        <key id="86437">SERVER-10560</key>
            <summary>bad offset:-33553922</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="david.hows">David Hows</assignee>
                                    <reporter username="huangxing">huangxing</reporter>
                        <labels>
                            <label>replication</label>
                    </labels>
                <created>Mon, 19 Aug 2013 05:41:19 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:12 +0000</updated>
                            <resolved>Wed, 15 Jan 2014 00:25:36 +0000</resolved>
                                    <version>2.4.4</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="443653" author="david.hows" created="Mon, 21 Oct 2013 04:57:51 +0000"  >&lt;p&gt;Hi huangxing,&lt;/p&gt;

&lt;p&gt;This sounds like there is some form of corruption in the oplog of the primary. Given this you have a options ways you can proceed forward. Please note that you should look to perform a backup before following any of the advice here to avoid unintended data loss.&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Restore the primary from the most recent backup&lt;/li&gt;
	&lt;li&gt;If you have an up-to-date secondary you can stop the primary, have a secondary take over and then &lt;a href=&quot;http://docs.mongodb.org/manual/tutorial/resync-replica-set-member/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;re-sync the corrupt member as detailed in our documentation&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Lastly, if you are worried that this primary has data which is contained in no other members you can perform the following process:
	&lt;ol&gt;
		&lt;li&gt;Stop all members of the replSet&lt;/li&gt;
		&lt;li&gt;Remove all the files matching local.* from the primaries dbpath&lt;/li&gt;
		&lt;li&gt;Start the primary again and run rs.initiate()&lt;/li&gt;
		&lt;li&gt;Delete the dbpath of one secondary, start it then run rs.add() to add on the primary to add this new member&lt;/li&gt;
		&lt;li&gt;Once this member has fully re-sync&apos;d perform the same process for all other secondaries&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Regards,&lt;br/&gt;
David&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>Mon, 21 Oct 2013 04:57:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 17 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>
                            10 years, 17 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.hows</customfieldvalue>
            <customfieldvalue>huangxing</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmj5z:</customfieldvalue>

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

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

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