<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:40:54 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-35771] why elect lower priority node master?</title>
                <link>https://jira.mongodb.org/browse/SERVER-35771</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;mongod:3.2.12&lt;/p&gt;

&lt;p&gt;os:centos 6.4&lt;/p&gt;

&lt;p&gt;A and B node are in the same room&#65292;C node in other room &#65292;A.priority=10,B.priority=5,C.priority=1,on the primary node A&#65306;cfg=rs.conf();cfg.members&lt;span class=&quot;error&quot;&gt;&amp;#91;B.node.id&amp;#93;&lt;/span&gt;=priority=15;rs.reconfig(cfg);&lt;/p&gt;


&lt;p&gt;A node and B node log&#65306;VoteRequester: Got no vote from xx.xx.xx.xx:yyyy because: candidate&apos;s data is staler than mine, resp&lt;/p&gt;

&lt;p&gt;but node is primary&#160;&lt;/p&gt;

&lt;p&gt;node A and node B continue to try in&#160;Starting an election for a priority takeover,but failed to be primary&#160;&lt;/p&gt;


&lt;p&gt;Q1: why the higher priority node A or node B not elected for master?&lt;/p&gt;</description>
                <environment></environment>
        <key id="563568">SERVER-35771</key>
            <summary>why elect lower priority node master?</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="3">Duplicate</resolution>
                                        <assignee username="nick.brewer">Nick Brewer</assignee>
                                    <reporter username="wendywong">wendywong</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Jun 2018 03:52:50 +0000</created>
                <updated>Tue, 14 Aug 2018 03:02:42 +0000</updated>
                            <resolved>Thu, 28 Jun 2018 20:39:56 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1941605" author="wendywong" created="Mon, 9 Jul 2018 10:08:24 +0000"  >&lt;p&gt;thanks very much&lt;/p&gt;</comment>
                            <comment id="1934272" author="nick.brewer" created="Thu, 28 Jun 2018 20:38:52 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=wendywong&quot; class=&quot;user-hover&quot; rel=&quot;wendywong&quot;&gt;wendywong&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I believe what you&apos;re running into is a known issue that was addressed in&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23663&quot; title=&quot;New primary syncs from chosen node to catch up with timeout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23663&quot;&gt;&lt;del&gt;SERVER-23663&lt;/del&gt;&lt;/a&gt;. I&apos;d suggest that you upgrade to version 3.4.15, as it contains a fix for this behavior.&lt;/p&gt;

&lt;p&gt;If you&apos;re still running into the problem after upgrading, let us know and we can investigate further. &lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Nick&lt;/p&gt;
</comment>
                            <comment id="1932539" author="wendywong" created="Wed, 27 Jun 2018 04:09:14 +0000"  >&lt;p&gt;hi Nick Brewer&#160;&lt;/p&gt;

&lt;p&gt;i doubt some log below&#65306;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SyncSourceFeedback&amp;#93;&lt;/span&gt; SyncSourceFeedback error sending update: network error while attempting to run command &apos;replSetUpdatePosition&apos; on host &apos;xx.xx.xx.xx:yyyy&apos; &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;SyncSourceFeedback&amp;#93;&lt;/span&gt; updateUpstream failed: HostUnreachable: network error while attempting to run command &apos;replSetUpdatePosition&apos; on host &apos;xx.xx.xx.xx:yyyy&apos; , will retry&lt;/p&gt;


&lt;p&gt;VoteRequester: Got no vote from xxxxx because: candidate&apos;s data is staler than mine, resp:{ term: 34, voteGranted: false, reason: &quot;candidate&apos;s data is staler than mine&quot;, ok: 1.0 }&lt;/p&gt;

&lt;p&gt;what&#160; does that&#160; &#160;means &#65311; how deal with it &#65311;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;thanks ahead&lt;/p&gt;

&lt;p&gt;wendywong&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="1932532" author="wendywong" created="Wed, 27 Jun 2018 03:48:52 +0000"  >&lt;p&gt;hi Nick Brewer&#65292;the node with&#160;&lt;tt&gt;&quot;_id&quot; : 0&#65292;besides&#65292;&lt;/tt&gt;&#160; with &quot;_id&quot;&#160; 1 2 3 4&#160; 5&#160; already exist&#65292;then i add&#160; the other 6 members in the following method&lt;/p&gt;

&lt;p&gt;rs.add({host:&quot;xx.xx.xx.xx:yyyy&quot;,priority:0,votes:0,hidden:true,tags:{IDC:&quot;BJ&quot;}})&lt;/p&gt;

&lt;p&gt;when the newly added members state are secondary&#65292;then i promote the one of new members to be primary by increasing the weight &#65292;and then happened&#65306; the member with lower priority was elected for master&#65292;the higher priority member did not for the reason that&#160;VoteRequester: Got no vote from xx.xx.xx.xx:ttttt because: candidate&apos;s data is staler than mine, resp:{ term: 32, voteGranted: false, reason: &quot;candidate&apos;s data is staler than mine&quot;, ok: 1.0 }&lt;/p&gt;

&lt;p&gt;&#160;thanks&#160;&lt;/p&gt;

&lt;p&gt;WendyWong&lt;/p&gt;</comment>
                            <comment id="1931813" author="nick.brewer" created="Tue, 26 Jun 2018 15:37:35 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=wendywong&quot; class=&quot;user-hover&quot; rel=&quot;wendywong&quot;&gt;wendywong&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Was the node with &lt;tt&gt;&quot;_id&quot; : 0&lt;/tt&gt; previously removed from this replica set, and then re-added? &lt;/p&gt;

&lt;p&gt;Nick&lt;/p&gt;</comment>
                            <comment id="1931340" author="wendywong" created="Tue, 26 Jun 2018 02:04:03 +0000"  >&lt;p&gt;hi Nick Brewer&#65292;I have uploaded the log&#65292;can you see it&#65311;&lt;/p&gt;</comment>
                            <comment id="1930569" author="nick.brewer" created="Mon, 25 Jun 2018 15:29:42 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=wendywong&quot; class=&quot;user-hover&quot; rel=&quot;wendywong&quot;&gt;wendywong&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for your report. I&apos;d like to see the following information:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The mongod logs for each of the replica set members, during the time frame when an election is triggered.&lt;/li&gt;
	&lt;li&gt;The full output of &lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/rs.conf/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;rs.conf()&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Since this is a public project, you can upload this information to our &lt;a href=&quot;https://10gen-httpsupload.s3.amazonaws.com/upload_forms/e21113f1-e7ba-477d-b266-982c492a6089.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;secure upload portal&lt;/a&gt; if you&apos;d prefer. Information that you share there is only visible to MongoDB employees, and it is automatically removed after a period of time. &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Nick&lt;/p&gt;
</comment>
                            <comment id="1930058" author="wendywong" created="Mon, 25 Jun 2018 03:55:21 +0000"  >&lt;p&gt;mongod:3.2.12&lt;/p&gt;

&lt;p&gt;os:centos 6.4&lt;/p&gt;

&lt;p&gt;A and B node are in the same room&#65292;C node in other room &#65292;A.priority=10,B.priority=5,C.priority=1,on the primary node A&#65306;cfg=rs.conf();cfg.members&lt;span class=&quot;error&quot;&gt;&amp;#91;B.node.id&amp;#93;&lt;/span&gt;.priority=15;rs.reconfig(cfg);&lt;/p&gt;

&lt;p&gt;A node and B node log&#65306;VoteRequester: Got no vote from xx.xx.xx.xx:yyyy because: candidate&apos;s data is staler than mine, resp.&lt;/p&gt;

&lt;p&gt;but node C&#160; is primary&#160;&lt;/p&gt;

&lt;p&gt;node A and node B continue to try in&#160;Starting an election for a priority takeover,but failed to be primary&#160;&lt;/p&gt;

&lt;p&gt;Q1: why the higher priority node A or node B not elected for master?&lt;/p&gt;

&lt;p&gt;&#160;&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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 25 Jun 2018 15:29:42 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 31 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 31 weeks, 2 days ago
                        </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>nick.brewer</customfieldvalue>
            <customfieldvalue>wendywong</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu1bp3:</customfieldvalue>

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

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

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