<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:15 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-2514] MongoD started with --fork crashes when initiating a replica set</title>
                <link>https://jira.mongodb.org/browse/SERVER-2514</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Started up 2 local mongodb instances on my laptop, they work fine to initiate a replica set if started in the foreground.&lt;/p&gt;

&lt;p&gt;However, if I start them with --fork, upon initiating the replica set the mongod instance I was connected to when initiating crashes with:&lt;/p&gt;


&lt;p&gt;Wed Feb  9 19:11:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; replSet replSetInitiate all members seem up&lt;br/&gt;
Wed Feb  9 19:11:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; ******&lt;br/&gt;
Wed Feb  9 19:11:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; creating replication oplog of size: 183MB...&lt;br/&gt;
Wed Feb  9 19:11:43 Got signal: 6 (Abort trap).&lt;/p&gt;

&lt;p&gt;Wed Feb  9 19:11:43 Backtrace:&lt;br/&gt;
0x100430573 0x7fff819c567a 0x7fff5fbfdb20 0x10042b27d 0x10043135b 0x100431a54 0x100433134 0x1000014f4 0xa &lt;br/&gt;
 0   mongod                              0x0000000100430573 _ZN5mongo10abruptQuitEi + 339&lt;br/&gt;
 1   libSystem.B.dylib                   0x00007fff819c567a _sigtramp + 26&lt;br/&gt;
 2   ???                                 0x00007fff5fbfdb20 0x0 + 140734799797024&lt;br/&gt;
 3   mongod                              0x000000010042b27d _ZN5mongo6listenEi + 205&lt;br/&gt;
 4   mongod                              0x000000010043135b _ZN5mongo14_initAndListenEiPKc + 1723&lt;br/&gt;
 5   mongod                              0x0000000100431a54 _ZN5mongo13initAndListenEiPKc + 36&lt;br/&gt;
 6   mongod                              0x0000000100433134 main + 3780&lt;br/&gt;
 7   mongod                              0x00000001000014f4 start + 52&lt;br/&gt;
 8   ???                                 0x000000000000000a 0x0 + 10&lt;/p&gt;


&lt;p&gt;Startup commands for mongod are&lt;/p&gt;

&lt;p&gt; mongod --port 27018 --replSet test --logpath test1.log --dbpath rs1 --fork&lt;br/&gt;
 mongod --port 27019 --replSet test --logpath test2.log --dbpath rs2 --fork&lt;/p&gt;

&lt;p&gt;Replica set config &lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
	&quot;_id&quot; : &quot;test&quot;,&lt;br/&gt;
	&quot;members&quot; : [&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;_id&quot; : 0,
			&quot;host&quot; : &quot;localhost:27018&quot;
		}
&lt;p&gt;,&lt;/p&gt;
		{
			&quot;_id&quot; : 1,
			&quot;host&quot; : &quot;localhost:27019&quot;
		}
&lt;p&gt;	]&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;The shell session looks like this:&lt;/p&gt;


&lt;p&gt;&amp;gt; rs.initiate(config)&lt;br/&gt;
Wed Feb  9 19:11:43 DBClientCursor::init call() failed&lt;br/&gt;
Wed Feb  9 19:11:43 query failed : admin.$cmd { replSetInitiate: { _id: &quot;test&quot;, members: [ &lt;/p&gt;
{ _id: 0.0, host: &quot;localhost:27018&quot; }
&lt;p&gt;, &lt;/p&gt;
{ _id: 1.0, host: &quot;localhost:27019&quot; }
&lt;p&gt; ] } } to: 127.0.0.1:27018&lt;br/&gt;
Wed Feb  9 19:11:43 Error: error doing query: failed shell/collection.js:150&lt;br/&gt;
Wed Feb  9 19:11:43 trying reconnect to 127.0.0.1:27018&lt;br/&gt;
Wed Feb  9 19:11:43 reconnect 127.0.0.1:27018 failed couldn&apos;t connect to server 127.0.0.1:27018&lt;/p&gt;


&lt;p&gt;Log file attached for both servers.&lt;/p&gt;

&lt;p&gt;This does &lt;b&gt;not&lt;/b&gt; occur when --fork is not used.&lt;/p&gt;</description>
                <environment>Mac OS 10.6.6 , 64 bit MongoDB 1.7.5</environment>
        <key id="14622">SERVER-2514</key>
            <summary>MongoD started with --fork crashes when initiating a replica set</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="brendan">Brendan W. McAdams</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Feb 2011 00:13:20 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:15 +0000</updated>
                            <resolved>Sat, 12 Feb 2011 05:41:59 +0000</resolved>
                                    <version>1.7.5</version>
                                    <fixVersion>1.7.6</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="23752" author="auto" created="Sat, 12 Feb 2011 05:41:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: need to run unit tests after fork so system state is stable &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2514&quot; title=&quot;MongoD started with --fork crashes when initiating a replica set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2514&quot;&gt;&lt;del&gt;SERVER-2514&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0196f0159e6ef5aab44429ba28c832228d543932&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0196f0159e6ef5aab44429ba28c832228d543932&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10800" name="test1.log" size="4073" author="brendan" created="Thu, 10 Feb 2011 00:13:20 +0000"/>
                            <attachment id="10801" name="test2.log" size="3606" author="brendan" created="Thu, 10 Feb 2011 00:13:20 +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>Thu, 10 Feb 2011 04:44:50 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 1 week, 4 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, 1 week, 4 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="10021"><![CDATA[OS X]]></customfieldvalue>

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

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

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

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