<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:32 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-1614] [replica sets] issues after running repair</title>
                <link>https://jira.mongodb.org/browse/SERVER-1614</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;To reproduce:&lt;/p&gt;

&lt;p&gt;1. Set up a replica set with three members. Initialize it.&lt;br/&gt;
2. Add some data so that initial sync happens.&lt;br/&gt;
3. Shut down each member and run a repair with mongod --repair&lt;br/&gt;
4. Restart the set as usual.&lt;/p&gt;

&lt;p&gt;Each set displays this:&lt;br/&gt;
Wed Aug 11 13:25:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (EMPTYCONFIG)&lt;br/&gt;
Wed Aug 11 13:25:51 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (EMPTYCONFIG)&lt;br/&gt;
Wed Aug 11 13:26:01 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (EMPTYCONFIG)&lt;/p&gt;

&lt;p&gt;In addition, if you look at the original master, collections appear to be missing from the local database:&lt;br/&gt;
&amp;gt; show collections&lt;br/&gt;
oplog.rs&lt;br/&gt;
slaves&lt;br/&gt;
system.indexes&lt;/p&gt;

&lt;p&gt;This case is also confirmed by the two reports mentioned in this forum post:&lt;br/&gt;
&lt;a href=&quot;http://groups.google.com/group/mongodb-user/browse_thread/thread/56e6f187800a8aef/92a6502ea6be3455#92a6502ea6be3455&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/browse_thread/thread/56e6f187800a8aef/92a6502ea6be3455#92a6502ea6be3455&lt;/a&gt;&lt;/p&gt;
</description>
                <environment></environment>
        <key id="12763">SERVER-1614</key>
            <summary>[replica sets] issues after running repair</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="dwight@mongodb.com">Dwight Merriman</assignee>
                                    <reporter username="kbanker">Kyle Banker</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Aug 2010 17:34:37 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:23 +0000</updated>
                            <resolved>Wed, 11 Aug 2010 23:23:49 +0000</resolved>
                                    <version>1.6.0</version>
                                    <fixVersion>1.6.1</fixVersion>
                    <fixVersion>1.7.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="16953" author="auto" created="Mon, 16 Aug 2010 21:10:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;dwight&apos;, &apos;name&apos;: &apos;dwight&apos;, &apos;email&apos;: &apos;dwight@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1614&quot; title=&quot;[replica sets] issues after running repair&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1614&quot;&gt;&lt;del&gt;SERVER-1614&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/415c2641235ea4f8770c5377687e650749d66560&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/415c2641235ea4f8770c5377687e650749d66560&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16768" author="auto" created="Wed, 11 Aug 2010 21:12:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;dwight&apos;, &apos;name&apos;: &apos;dwight&apos;, &apos;email&apos;: &apos;dwight@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1614&quot; title=&quot;[replica sets] issues after running repair&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1614&quot;&gt;&lt;del&gt;SERVER-1614&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/69e92f803d6132ef1f00c320880f743d27dc1f2d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/69e92f803d6132ef1f00c320880f743d27dc1f2d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16767" author="dwight_10gen" created="Wed, 11 Aug 2010 21:03:24 +0000"  >&lt;p&gt;WORKAROUND / to fix this &lt;/p&gt;

&lt;p&gt;Cause : local.system.replset not recreated on a repair.&lt;/p&gt;

&lt;p&gt;Workaround : manually repopulate it with the single config document.  &lt;/p&gt;

&lt;p&gt;Recommend you backup first.&lt;/p&gt;

&lt;p&gt;Basically what we want to do is (from the shell) : &lt;/p&gt;

&lt;p&gt;&amp;gt; use local&lt;br/&gt;
&amp;gt; // verify it is empty.  it SHOULD be if things are broken:&lt;br/&gt;
&amp;gt; db.system.replset.find() &lt;br/&gt;
&amp;gt; // then manually recreate it:&lt;br/&gt;
&amp;gt; db.system.replset.insert( YOUR_CONFIG_OBJECT );&lt;/p&gt;

&lt;p&gt;however, the above won&apos;t work as you can&apos;t normally insert directly into a system collection.  there is a hacky workaround though using rename:&lt;/p&gt;

&lt;p&gt;&amp;gt; use local&lt;br/&gt;
&amp;gt; // verify it is empty.  it SHOULD be if things are broken:&lt;br/&gt;
&amp;gt; db.system.replset.find() &lt;br/&gt;
&amp;gt; // then manually recreate it:&lt;br/&gt;
&amp;gt; db.temp1.insert( YOUR_CONFIG_OBJECT );&lt;br/&gt;
&amp;gt; assert( db.temp1.count() == 1 );&lt;br/&gt;
&amp;gt; db.temp1.renameCollection(&apos;system.replset&apos;);&lt;br/&gt;
&amp;gt; db.system.replset.find(); // verify&lt;/p&gt;

&lt;p&gt;Pretty sure it will work after that.  You probably only have to do a single member and it will all come back then (I think).  Let me know.&lt;/p&gt;
</comment>
                            <comment id="16763" author="kbanker" created="Wed, 11 Aug 2010 17:51:20 +0000"  >&lt;p&gt;Here&apos;s some more incredibly unusual behavior.&lt;/p&gt;

&lt;p&gt;After repairing, I connect to the original master node. Since there&apos;s no primary, I set slave ok:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.getMongo().setSlaveOk();&lt;br/&gt;
&amp;gt; use admin&lt;br/&gt;
&amp;gt; show collections&lt;/p&gt;

&lt;p&gt;After running those commands, the db segfaults:&lt;/p&gt;

&lt;p&gt;Wed Aug 11 13:48:57 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:53058 #3&lt;br/&gt;
Wed Aug 11 13:49:02 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt; assertion 10107 not master ns:admin.system.namespaces query:{}&lt;br/&gt;
Wed Aug 11 13:49:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (EMPTYCONFIG)&lt;br/&gt;
Wed Aug 11 13:49:15  Got signal: 11 (Segmentation fault).&lt;/p&gt;

&lt;p&gt;Wed Aug 11 13:49:15  Backtrace:&lt;br/&gt;
0x10039804c 0x7fff8145035a 0x100b04800 0x10025f360 0x100266145 0x10039b422 0x1003acf94 0x7fff81429456 0x7fff81429309 &lt;br/&gt;
 0   mongod                              0x000000010039804c _ZN5mongo10abruptQuitEi + 332&lt;br/&gt;
 1   libSystem.B.dylib                   0x00007fff8145035a _sigtramp + 26&lt;br/&gt;
 2   ???                                 0x0000000100b04800 0x0 + 4306520064&lt;br/&gt;
 3   mongod                              0x000000010025f360 _ZN5mongo13receivedQueryERNS_6ClientERNS_10DbResponseERNS_7MessageE + 608&lt;br/&gt;
 4   mongod                              0x0000000100266145 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5029&lt;br/&gt;
 5   mongod                              0x000000010039b422 _ZN5mongo10connThreadEPNS_13MessagingPortE + 562&lt;br/&gt;
 6   mongod                              0x00000001003acf94 thread_proxy + 132&lt;br/&gt;
 7   libSystem.B.dylib                   0x00007fff81429456 _pthread_start + 331&lt;br/&gt;
 8   libSystem.B.dylib                   0x00007fff81429309 thread_start + 13&lt;/p&gt;

&lt;p&gt;Wed Aug 11 13:49:15  dbexit: &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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 11 Aug 2010 21:03:24 +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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>kbanker</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hriinb:</customfieldvalue>

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

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

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