<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:27:22 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-31532] Change error message to start with &quot;not master&quot; rather than &quot;not primary&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-31532</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Some drivers &lt;a href=&quot;https://github.com/mongodb/mongo-python-driver/blob/df018e88e2ab0cf9dd7710093ba0bb6d2f57ee4a/pymongo/helpers.py#L123&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;parse error messages&lt;/a&gt; returned by the server, looking for strings like &quot;not master.&quot; We should change &lt;a href=&quot;https://github.com/mongodb/mongo/blob/254a60a637ae4ea70bf9b0713efd3a7d207ff730/src/mongo/db/repl/replication_coordinator_impl.cpp#L1656&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this error message&lt;/a&gt; to start with &quot;not master&quot; rather than &quot;not primary.&quot;&lt;/p&gt;

&lt;p&gt;The result of the error message starting with &quot;not primary&quot; instead of &quot;not master&quot; is that pymongo raises a generic &lt;tt&gt;OperationFailure&lt;/tt&gt; exception rather than a &lt;tt&gt;NotMaster&lt;/tt&gt; exception after processing the error message. This is causing problems in TIG&apos;s &lt;a href=&quot;https://github.com/mongodb/mongo/blob/254a60a637ae4ea70bf9b0713efd3a7d207ff730/buildscripts/resmokelib/testing/hooks/stepdown.py#L187-L189&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;continuous stepdown hook&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="444576">SERVER-31532</key>
            <summary>Change error message to start with &quot;not master&quot; rather than &quot;not primary&quot;</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="ian.boros@mongodb.com">Ian Boros</assignee>
                                    <reporter username="ian.boros@mongodb.com">Ian Boros</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Oct 2017 18:57:24 +0000</created>
                <updated>Mon, 29 Jan 2018 18:34:46 +0000</updated>
                            <resolved>Fri, 13 Oct 2017 14:20:41 +0000</resolved>
                                                                    <component>Replication</component>
                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1698234" author="ian.boros" created="Fri, 13 Oct 2017 14:03:56 +0000"  >&lt;p&gt;I&apos;m going to close this ticket and make this change under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31461&quot; title=&quot;Resmoke stepdown hook should deal with NotMaster errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31461&quot;&gt;&lt;del&gt;SERVER-31461&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1697848" author="spencer" created="Thu, 12 Oct 2017 22:31:52 +0000"  >&lt;p&gt;I think using codes instead of string parsing of error messages is definitely the right way to go, though I&apos;m don&apos;t think WriteConcernFailed should be considered a NotMaster error here (since write concern can fail even when the primary is healthy).  We should basically just stay in line with the NotMasterErrors error class defined here: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ba0ee77c61c39b077d0975b7487099c5985c7b18/src/mongo/base/error_codes.err#L262&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/ba0ee77c61c39b077d0975b7487099c5985c7b18/src/mongo/base/error_codes.err#L262&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1697644" author="max.hirschhorn@10gen.com" created="Thu, 12 Oct 2017 19:53:01 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ian.boros&quot; class=&quot;user-hover&quot; rel=&quot;ian.boros&quot;&gt;ian.boros&lt;/a&gt;, rather than your change to modify the server&apos;s error message, I think we should change the &lt;tt&gt;StepdownThread&lt;/tt&gt; in resmoke.py getting an &lt;tt&gt;OperationFailed&lt;/tt&gt; exception as any of the following as the error code returned in the server&apos;s response.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;ErrorCodes::NotMaster&lt;/li&gt;
	&lt;li&gt;ErrorCodes::NotMasterNoSlaveOk&lt;/li&gt;
	&lt;li&gt;ErrorCodes::NotMasterOrSecondary&lt;/li&gt;
	&lt;li&gt;ErrorCodes::WriteConcernFailed&lt;/li&gt;
	&lt;li&gt;ErrorCodes::PrimarySteppedDown&lt;/li&gt;
	&lt;li&gt;ErrorCodes::InterruptedDueToReplStateChange&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1697631" author="kaloian.manassiev" created="Thu, 12 Oct 2017 19:45:17 +0000"  >&lt;p&gt;The outcome was that all the codes listed &lt;a href=&quot;https://github.com/mongodb/mongo/blob/254a60a637ae4ea70bf9b0713efd3a7d207ff730/src/mongo/client/remote_command_retry_scheduler.cpp#L103&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; can be returned and not all of them have &quot;not master&quot; in the message.&lt;/p&gt;

&lt;p&gt;For example all of the instances of &lt;tt&gt;PrimarySteppedDown&lt;/tt&gt;:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/254a60a637ae4ea70bf9b0713efd3a7d207ff730/src/mongo/db/ops/update.cpp#L84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/254a60a637ae4ea70bf9b0713efd3a7d207ff730/src/mongo/db/ops/update.cpp#L84&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/254a60a637ae4ea70bf9b0713efd3a7d207ff730/src/mongo/db/exec/update.cpp#L728&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/254a60a637ae4ea70bf9b0713efd3a7d207ff730/src/mongo/db/exec/update.cpp#L728&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="442471">SERVER-31461</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 12 Oct 2017 19:25:21 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 17 weeks, 5 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>
                            6 years, 17 weeks, 5 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>ian.boros@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htho67:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht9jrz:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1917">TIG 2017-10-23</customfieldvalue>

                        </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|htha9z:</customfieldvalue>

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