<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:33 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>[CSHARP-1058] Force replSetReconfig in mongodb C# driver</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1058</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I&apos;ve been on forums talking with several people  for the last few days and no one has been able to give me an answer. &lt;/p&gt;

&lt;p&gt;Is there anyway to reconfigure a replica set in the event the primary as well as a majority of the servers are down? For example if data center 1 goes down, a procedure can be run to reconfigure and set a new primary with the remaining servers?&lt;/p&gt;

&lt;p&gt;I tried the eval method on the database object and I get this:&lt;br/&gt;
&quot;Command &apos;$eval&apos; failed: not master (response: &lt;/p&gt;
{ &quot;note&quot; : &quot;from execCommand&quot;, &quot;ok&quot; : 0.0, &quot;errmsg&quot; : &quot;not master&quot; }
&lt;p&gt;)&quot;&lt;/p&gt;

&lt;p&gt;I also tried this:&lt;br/&gt;
var reconfigCommand = new CommandDocument&lt;br/&gt;
{&lt;br/&gt;
    {&quot;replSetReconfig&quot;, new BsonDocument{{&quot;configuration&quot;, newConfig},&lt;/p&gt;
{&quot;force&quot;, true}
&lt;p&gt;}}&lt;br/&gt;
};&lt;/p&gt;

&lt;p&gt;var response = database.RunCommand(reconfigCommand); &lt;/p&gt;

&lt;p&gt;And RunCommand throws the following MongoCommandException&lt;/p&gt;

&lt;p&gt;Command &apos;replSetReconfig&apos; failed: replSetReconfig command must be sent to the current replica set primary. (response: &lt;/p&gt;
{ &quot;ok&quot; : 0.0, &quot;errmsg&quot; : &quot;replSetReconfig command must be sent to the current replica set primary.&quot; }
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;From what I can tell in the documentation, force = true should allow reconfig against a non-primary database.&lt;/p&gt;

&lt;p&gt;Any suggestions?&lt;/p&gt;</description>
                <environment></environment>
        <key id="157042">CSHARP-1058</key>
            <summary>Force replSetReconfig in mongodb C# driver</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="-1">Unassigned</assignee>
                                    <reporter username="stephenw">Stephen Weaver</reporter>
                        <labels>
                            <label>c#</label>
                            <label>question</label>
                    </labels>
                <created>Mon, 8 Sep 2014 21:05:45 +0000</created>
                <updated>Fri, 5 Apr 2019 13:58:36 +0000</updated>
                            <resolved>Sat, 4 Apr 2015 22:30:49 +0000</resolved>
                                                                    <component>API</component>
                    <component>BSON</component>
                    <component>Configuration</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs21lb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>136599</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>