<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:51 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-4393] Adding member in replica by hostname fails</title>
                <link>https://jira.mongodb.org/browse/SERVER-4393</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;For each node in replica set we have hostnames (mongo-0-0 for master, mongo-0-1 for the first slave and so on)  in /etc/hosts.&lt;br/&gt;
And when trying to add a slave to set using hostnames, we always get this particular error: &lt;/p&gt;

&lt;p&gt;&apos;need most members up to reconfigure, not ok : mongo-0-1:27018&apos;, assertionCode: 13144&lt;/p&gt;

&lt;p&gt;The problem occurs only in case /etc/hosts is modified after mongod process was started on the master node.&lt;/p&gt;

&lt;p&gt;Although if we use IP-addresses instead of hostnames, or hack /etc/hosts &lt;em&gt;before&lt;/em&gt; starting master&apos;s mongod, or if we simply restart mongod when manipulating with /etc/hosts is done everything seems to be alright, replication process begins and we get no errors. &lt;/p&gt;

&lt;p&gt;But unfortunately neither is acceptable for our setup. &lt;/p&gt;</description>
                <environment>Ubuntu 10.04</environment>
        <key id="25717">SERVER-4393</key>
            <summary>Adding member in replica by hostname fails</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="korsakov">Dmytro Korsakov</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Nov 2011 07:38:53 +0000</created>
                <updated>Mon, 28 Oct 2019 23:46:10 +0000</updated>
                            <resolved>Thu, 1 Dec 2011 15:53:48 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2505829" author="xgen-internal-githook" created="Mon, 28 Oct 2019 23:46:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Mark Benvenuto&apos;, &apos;username&apos;: &apos;markbenvenuto&apos;, &apos;email&apos;: &apos;mark.benvenuto@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4393&quot; title=&quot;Adding member in replica by hostname fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4393&quot;&gt;&lt;del&gt;SERVER-4393&lt;/del&gt;&lt;/a&gt; Remove cpplint.py and lint.py&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1e23641536f0b2e3632e11e40e35bf017b4f5e64&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1e23641536f0b2e3632e11e40e35bf017b4f5e64&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2505828" author="xgen-internal-githook" created="Mon, 28 Oct 2019 23:45:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;markbenvenuto&apos;, &apos;email&apos;: &apos;mark.benvenuto@mongodb.com&apos;, &apos;name&apos;: &apos;Mark Benvenuto&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4393&quot; title=&quot;Adding member in replica by hostname fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4393&quot;&gt;&lt;del&gt;SERVER-4393&lt;/del&gt;&lt;/a&gt; Remove cpplint.py and lint.py&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/949826f4869580fd3a14838f08d104194c2a578b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/949826f4869580fd3a14838f08d104194c2a578b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="70092" author="kristina" created="Thu, 1 Dec 2011 15:53:37 +0000"  >&lt;p&gt;You can do it in any order so long as the new set has a majority of servers up.  You&apos;re right, the documentation didn&apos;t go into this very well, I added clarification to &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Adding+a+New+Set+Member&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Adding+a+New+Set+Member&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="70040" author="korsakov" created="Thu, 1 Dec 2011 12:23:38 +0000"  >&lt;p&gt;Looks like we misinterpreted documentation. &lt;/p&gt;

&lt;p&gt;Answering your question,&lt;br/&gt;
1. on machine A I change /etc/hosts to be mongo-0-0 &lt;br/&gt;
2. on machine A I start a primary &lt;br/&gt;
3. on machine A I add secondary&apos;s (B) ip as host &apos;mongo-0-1&apos; to /etc/hosts &lt;br/&gt;
4. on machine A I check that mongo-0-1 resolves ok &lt;br/&gt;
5. on machine A I register a secondary (B) by hostname mongo-0-1&lt;br/&gt;
At  that moment I get the error message&lt;br/&gt;
6. Script starts a secondary on machine B &lt;br/&gt;
By the time I get error and try IP instead of hostname the script does &#8470;6 and test passes.&lt;/p&gt;

&lt;p&gt;Now we start secondary process &lt;em&gt;before&lt;/em&gt; registering it on primary and it works just fine with both IPs and hostnames. &lt;/p&gt;

&lt;p&gt;Mongo documentation states that using 2.0+ I can do it in any order, but there seems to be an exception: the 1st secondary cannot be registered on primary before secondary&apos;s process brought up because there is no majority running and if some decide to add unexisting replica to such set, he will need to do it with &lt;/p&gt;
{force:true}
&lt;p&gt;. &lt;/p&gt;</comment>
                            <comment id="69906" author="kristina" created="Wed, 30 Nov 2011 20:00:17 +0000"  >&lt;p&gt;I&apos;m not exactly clear on what you&apos;re doing, can you confirm:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;You start a primary on a machine (A).&lt;/li&gt;
	&lt;li&gt;You change A&apos;s /etc/hosts to be mongo-0-0&lt;/li&gt;
	&lt;li&gt;You add a secondary (B)&lt;/li&gt;
	&lt;li&gt;You change B&apos;s /etc/hosts to be mongo-0-1&lt;/li&gt;
	&lt;li&gt;You try to add another member and get the &quot;need most members up&quot; error&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Is that correct?&lt;/p&gt;

&lt;p&gt;Can you run with -vvv and attach the log from the primary, too?&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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 30 Nov 2011 20:00:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 15 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>xgen-internal-githook</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 15 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="10020"><![CDATA[Linux]]></customfieldvalue>

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

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

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

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