<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:08 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-1479] Error when setting up replica sets - assertion failure !sp.state.primary() db/repl/rs.h 184</title>
                <link>https://jira.mongodb.org/browse/SERVER-1479</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Don&apos;t know if this is some weirdness (or screwup on my part) because I am running on the same machine... but I can reproduce this repeatedly:&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;1. start 1st server as follows:&lt;br/&gt;
./mongod --rest --replSet myset/Nosh-Petigaras-MacBook-Pro.local:27017 --dbpath /Users/nosh/replset/s1-data/&lt;br/&gt;
-then call rs.initiate(). Seems to elect itself primary&lt;/p&gt;

&lt;p&gt;2. start 2nd server as follows:&lt;br/&gt;
./mongod --rest --replSet myset/Nosh-Petigaras-MacBook-Pro.local:27018,Nosh-Petigaras-MacBook-Pro.local:27017 --dbpath /Users/nosh/replset/s2-data/ --port 27018&lt;/p&gt;

&lt;p&gt;-starts, up but doesn&apos;t really do anything.&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; Sat Jul 24 16:27:25 replSet warning can&apos;t find self in the repl set configuration:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; Sat Jul 24 16:27:25 { _id: &quot;myset&quot;, version: 1, members: [ &lt;/p&gt;
{ _id: 0, host: &quot;Nosh-Petigaras-MacBook-Pro.local:27017&quot; }
&lt;p&gt; ] }&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; Sat Jul 24 16:27:25 replSet info Couldn&apos;t load config yet. Sleeping 20sec and will try again.&lt;/p&gt;

&lt;p&gt;3. Then call rs.add(&quot;Nosh-Petigaras-MacBook-Pro.local:27018&quot;) on first server&lt;br/&gt;
Seems to be working i.e. can see stuff about replsets on the second servr.&lt;br/&gt;
Then I get this error in the console of the 1st server:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Sat Jul 24 16:27:05 connection accepted from 172.14.1.101:53692 #4&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Sat Jul 24 16:28:44 replSet replSetReconfig config object parses ok, 2 members specified&lt;br/&gt;
TODO : don&apos;t allow removal of a node until we handle it at the removed node end.&lt;br/&gt;
TEMP hb res cfg change:{ rs: true, set: &quot;myset&quot;, state: 1, hbmsg: &quot;&quot;, opTime: new Date(5497571762516262913), v: 1, config: { _id: &quot;myset&quot;, version: 1, members: [ &lt;/p&gt;
{ _id: 0, host: &quot;Nosh-Petigaras-MacBook-Pro.local:27017&quot; }
&lt;p&gt; ] }, ok: 1.0 }&lt;br/&gt;
TEMP hb res cfg change:&lt;/p&gt;
{ rs: true, errmsg: &quot;still initializing&quot;, ok: 0.0 }
&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Sat Jul 24 16:28:44 replSet replSetReconfig all members seem up&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Sat Jul 24 16:28:44 replSet info saving a newer config version to local.system.replset&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Sat Jul 24 16:28:44   Assertion failure !sp.state.primary() db/repl/rs.h 184&lt;br/&gt;
0x10007223e 0x1000803ae 0x1001ace0f 0x1001b1005 0x1001c731a 0x1001c83c1 0x1002e141e 0x1002e33a4 0x1001232f4 0x100124f87 0x1002480aa 0x10024d215 0x10037aec2 0x10038b964 0x7fff825408b6 0x7fff82540769&lt;br/&gt;
 0   mongod                              0x000000010007223e _ZN5mongo12sayDbContextEPKc + 174&lt;br/&gt;
 1   mongod                              0x00000001000803ae _ZN5mongo8assertedEPKcS1_j + 286&lt;br/&gt;
 2   mongod                              0x00000001001ace0f _ZN5mongo11ReplSetImpl14initFromConfigERNS_13ReplSetConfigE + 2447&lt;br/&gt;
 3   mongod                              0x00000001001b1005 _ZN5mongo7ReplSet13haveNewConfigERNS_13ReplSetConfigEb + 389&lt;br/&gt;
 4   mongod                              0x00000001001c731a _ZN5mongo18CmdReplSetReconfig4_runERKSsRNS_7BSONObjERSsRNS_14BSONObjBuilderEb + 1818&lt;br/&gt;
 5   mongod                              0x00000001001c83c1 _ZN5mongo18CmdReplSetReconfig3runERKSsRNS_7BSONObjERSsRNS_14BSONObjBuilderEb + 945&lt;br/&gt;
 6   mongod                              0x00000001002e141e _ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 622&lt;br/&gt;
 7   mongod                              0x00000001002e33a4 _ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_10BufBuilderERNS_14BSONObjBuilderEbi + 2804&lt;br/&gt;
 8   mongod                              0x00000001001232f4 _ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_10BufBuilderERNS_14BSONObjBuilderEbi + 52&lt;br/&gt;
 9   mongod                              0x0000000100124f87 &lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt; + 6423&lt;br/&gt;
 10  mongod                              0x00000001002480aa _ZN5mongo13receivedQueryERNS_6ClientERNS_10DbResponseERNS_7MessageE + 586&lt;br/&gt;
 11  mongod                              0x000000010024d215 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 4869&lt;br/&gt;
 12  mongod                              0x000000010037aec2 _ZN5mongo10connThreadEv + 562&lt;br/&gt;
 13  mongod                              0x000000010038b964 thread_proxy + 132&lt;br/&gt;
 14  libSystem.B.dylib                   0x00007fff825408b6 _pthread_start + 331&lt;br/&gt;
 15  libSystem.B.dylib                   0x00007fff82540769 thread_start + 13&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Sat Jul 24 16:28:44 replSet error unexpected exception in haveNewConfig() : 0 assertion db/repl/rs.h:184&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Sat Jul 24 16:28:44 replSet fatal error&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Sat Jul 24 16:28:44 replSet error fatal error, stopping replication&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Sat Jul 24 16:28:44 query admin.$cmd ntoreturn:1 command: { replSetReconfig: { _id: &quot;myset&quot;, version: 2, members: [ &lt;/p&gt;
{ _id: 0, host: &quot;Nosh-Petigaras-MacBook-Pro.local:27017&quot; }
&lt;p&gt;, &lt;/p&gt;
{ _id: 1.0, host: &quot;Nosh-Petigaras-MacBook-Pro.local:27018&quot; }
&lt;p&gt; ] } } reslen:53 154ms&lt;/p&gt;</description>
                <environment>OSX 64</environment>
        <key id="12542">SERVER-1479</key>
            <summary>Error when setting up replica sets - assertion failure !sp.state.primary() db/repl/rs.h 184</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="nosh">nosh petigara</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Jul 2010 20:41:22 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:12 +0000</updated>
                            <resolved>Thu, 29 Jul 2010 01:22:09 +0000</resolved>
                                    <version>1.5.6</version>
                                    <fixVersion>1.5.7</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="16268" author="kristina" created="Wed, 28 Jul 2010 20:26:11 +0000"  >&lt;p&gt;This works for me now.&lt;/p&gt;</comment>
                            <comment id="16191" author="kbanker" created="Tue, 27 Jul 2010 03:40:13 +0000"  >&lt;p&gt;Note that this is a duplicate issue. See linked issue.&lt;/p&gt;</comment>
                            <comment id="16190" author="kbanker" created="Tue, 27 Jul 2010 03:39:38 +0000"  >&lt;p&gt;these are the same issue&lt;/p&gt;</comment>
                            <comment id="16162" author="auto" created="Mon, 26 Jul 2010 19:11:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;banker&apos;, &apos;name&apos;: &apos;Kyle Banker&apos;, &apos;email&apos;: &apos;kylebanker@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1479&quot; title=&quot;Error when setting up replica sets - assertion failure !sp.state.primary() db/repl/rs.h 184&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1479&quot;&gt;&lt;del&gt;SERVER-1479&lt;/del&gt;&lt;/a&gt; and replSet js test cleanup&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/e94cc361ed088b5cb1f2cfe8ab30fc641c74639e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/e94cc361ed088b5cb1f2cfe8ab30fc641c74639e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16154" author="kristina" created="Mon, 26 Jul 2010 16:32:13 +0000"  >&lt;p&gt;I&apos;m also getting this.  Run:&lt;/p&gt;

&lt;p&gt;$ ./mongod --replSet unicomplex/hostname:27017 --dbpath ~/dbs/blort1&lt;br/&gt;
$ ./mongod --replSet unicomplex/hostname:27017 --dbpath ~/dbs/blort2 --port 27018&lt;/p&gt;

&lt;p&gt;Wait until 27017 prints &quot;replSet   sleeping 20sec and will try again.&quot; then in the shell:&lt;/p&gt;

&lt;p&gt;&amp;gt; rs.initiate()&lt;br/&gt;
&amp;gt; // once the log says &quot;replSet election succeeded, assuming primary role&quot;, run:&lt;br/&gt;
&amp;gt; rs.add(&quot;hostname:27018&quot;)&lt;/p&gt;

&lt;p&gt;The ./mongod running at 27017 will have the assertion failure.&lt;/p&gt;

&lt;p&gt;It&apos;s caused by the box.setOtherPrimary(0); line of rs.cpp.&lt;/p&gt;</comment>
                            <comment id="16150" author="auto" created="Mon, 26 Jul 2010 16:01:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;banker&apos;, &apos;name&apos;: &apos;Kyle Banker&apos;, &apos;email&apos;: &apos;kylebanker@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1482&quot; title=&quot;rs.add() assert db/repl/rs.h:184&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1482&quot;&gt;&lt;del&gt;SERVER-1482&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1479&quot; title=&quot;Error when setting up replica sets - assertion failure !sp.state.primary() db/repl/rs.h 184&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1479&quot;&gt;&lt;del&gt;SERVER-1479&lt;/del&gt;&lt;/a&gt; failing replica set add test&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/c23a930a46a82e558ab467be1be63e9764d562e6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/c23a930a46a82e558ab467be1be63e9764d562e6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16127" author="eliot" created="Sun, 25 Jul 2010 01:39:52 +0000"  >&lt;p&gt;kyle - can you add a test for this.&lt;br/&gt;
when you have a test that fiels, comment out failing part, commit and assign back to me&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="12545">SERVER-1482</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 25 Jul 2010 01:39:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 30 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>
                            13 years, 30 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_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>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>kbanker</customfieldvalue>
            <customfieldvalue>nosh</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpizr:</customfieldvalue>

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

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

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