<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:13 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-1847] ReplicaSet configuration is not yet initialized when the server start to accept connections.</title>
                <link>https://jira.mongodb.org/browse/SERVER-1847</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Given an empty mongodb server launched with --replSet.&lt;/p&gt;

&lt;p&gt;If you immediately run rs.initiate(); when the server start to accept connections on port 27017 the command fails.&lt;/p&gt;

&lt;p&gt;A quick look over the source code show that at this time ReplSet::startupStatus is different from ReplSet::EMPTYCONFIG as it should be.&lt;/p&gt;

&lt;p&gt;If you wait 5 seconds after the server start to accept connections to run the command then it succeed.&lt;/p&gt;

&lt;p&gt;I expect the command to succeed as soon as the server start to accept connections. It breaks automation scripts.&lt;/p&gt;

&lt;p&gt;Please find attached the console output.&lt;/p&gt;</description>
                <environment>Linux 2.6.34.2 with Ubuntu Lucid Lynx userland, mongodb package from 10gen&amp;#xA0;on a dual core 64bits EC2 server. (m1.large)</environment>
        <key id="13172">SERVER-1847</key>
            <summary>ReplicaSet configuration is not yet initialized when the server start to accept connections.</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="kristina">Kristina Chodorow</assignee>
                                    <reporter username="kalessin">Louis Opter</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Sep 2010 10:44:47 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:01 +0000</updated>
                            <resolved>Tue, 28 Sep 2010 17:06:56 +0000</resolved>
                                    <version>1.6.3</version>
                                    <fixVersion>1.7.2</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="20513" author="auto" created="Sat, 20 Nov 2010 05:01:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kchodorow&apos;, &apos;name&apos;: &apos;Kristina Chodorow&apos;, &apos;email&apos;: &apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: set empty config asap on startup &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1847&quot; title=&quot;ReplicaSet configuration is not yet initialized when the server start to accept connections.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1847&quot;&gt;&lt;del&gt;SERVER-1847&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
/mongodb/mongo/commit/3d0d33f1a9545e9292ec63bf2d8ac545c7094378&lt;/p&gt;</comment>
                            <comment id="18634" author="kristina" created="Tue, 28 Sep 2010 17:06:56 +0000"  >&lt;p&gt;You should be able to initialize immediately, now.&lt;/p&gt;</comment>
                            <comment id="18633" author="auto" created="Tue, 28 Sep 2010 16:54:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kchodorow&apos;, &apos;name&apos;: &apos;Kristina Chodorow&apos;, &apos;email&apos;: &apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: set empty config asap on startup &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1847&quot; title=&quot;ReplicaSet configuration is not yet initialized when the server start to accept connections.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1847&quot;&gt;&lt;del&gt;SERVER-1847&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/604d1718284d947c00a641a02053b1c7619a442e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/604d1718284d947c00a641a02053b1c7619a442e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="18491" author="kalessin" created="Fri, 24 Sep 2010 11:06:24 +0000"  >&lt;p&gt;Just realized that in this case rs.initiate fails even after a sleep of 5 seconds.&lt;/p&gt;

&lt;p&gt;I will provide a new typescript wich clearly show that it works after a sleep.&lt;/p&gt;

&lt;p&gt;Edit: new typescript attached with a sleep of 10 seconds instead of 5.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10472" name="typescript" size="3452" author="kalessin" created="Fri, 24 Sep 2010 11:11:59 +0000"/>
                            <attachment id="10473" name="typescript.time" size="186" author="kalessin" created="Fri, 24 Sep 2010 11:11:59 +0000"/>
                    </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>Tue, 28 Sep 2010 16:54:29 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 13 weeks, 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, 13 weeks, 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="10020"><![CDATA[Linux]]></customfieldvalue>

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

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

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

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