<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:59 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-3413] moveprimary doesn&apos;t propagate changes to other mongos instances</title>
                <link>https://jira.mongodb.org/browse/SERVER-3413</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;After running the moveprimary command via mongos, other mongos instances that communicate with the same mongod instances may not be aware of the move.  In other words, they may still send updates to the old mongod after the move is complete.&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;br/&gt;
Assume there are &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;two mongod instances running on ports 27101 and 27102&lt;/li&gt;
	&lt;li&gt;two mongos instances running on ports 27017 and 27018&lt;/li&gt;
	&lt;li&gt;one config server instance running on port 27019&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;1) Open a mongo shell to each of the two mongos instances (db=test).&lt;br/&gt;
2) Call db.stats() on each shell.&lt;br/&gt;
3) On the first mongos, move the test database to the other shard.&lt;br/&gt;
4) Call db.stats() on each shell.  Note that the second mongos returns the wrong primary.&lt;/p&gt;

&lt;p&gt;SHELL 1:&lt;br/&gt;
...&amp;gt;mongo localhost:27017&lt;br/&gt;
MongoDB shell version: 1.8.2&lt;br/&gt;
connecting to: localhost:27017/test&lt;br/&gt;
&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;raw&quot; : {&lt;br/&gt;
                &quot;localhost:27101&quot; : &lt;/p&gt;
{
                        &quot;db&quot; : &quot;test&quot;,
                        &quot;collections&quot; : 0,
                        &quot;objects&quot; : 0,
                        &quot;avgObjSize&quot; : 0,
                        &quot;dataSize&quot; : 0,
                        &quot;storageSize&quot; : 0,
                        &quot;numExtents&quot; : 0,
                        &quot;indexes&quot; : 0,
                        &quot;indexSize&quot; : 0,
                        &quot;fileSize&quot; : 0,
                        &quot;ok&quot; : 1
                }
&lt;p&gt;        },&lt;br/&gt;
        &quot;objects&quot; : 0,&lt;br/&gt;
        &quot;avgObjSize&quot; : NaN,&lt;br/&gt;
        &quot;dataSize&quot; : 0,&lt;br/&gt;
        &quot;storageSize&quot; : 0,&lt;br/&gt;
        &quot;numExtents&quot; : 0,&lt;br/&gt;
        &quot;indexes&quot; : 0,&lt;br/&gt;
        &quot;indexSize&quot; : 0,&lt;br/&gt;
        &quot;fileSize&quot; : 0,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;SHELL 2:&lt;br/&gt;
...&amp;gt;mongo localhost:27018&lt;br/&gt;
MongoDB shell version: 1.8.2&lt;br/&gt;
connecting to: localhost:27018/test&lt;br/&gt;
&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;raw&quot; : {&lt;br/&gt;
                &quot;localhost:27101&quot; : &lt;/p&gt;
{
                        &quot;db&quot; : &quot;test&quot;,
                        &quot;collections&quot; : 0,
                        &quot;objects&quot; : 0,
                        &quot;avgObjSize&quot; : 0,
                        &quot;dataSize&quot; : 0,
                        &quot;storageSize&quot; : 0,
                        &quot;numExtents&quot; : 0,
                        &quot;indexes&quot; : 0,
                        &quot;indexSize&quot; : 0,
                        &quot;fileSize&quot; : 0,
                        &quot;ok&quot; : 1
                }
&lt;p&gt;        },&lt;br/&gt;
        &quot;objects&quot; : 0,&lt;br/&gt;
        &quot;avgObjSize&quot; : NaN,&lt;br/&gt;
        &quot;dataSize&quot; : 0,&lt;br/&gt;
        &quot;storageSize&quot; : 0,&lt;br/&gt;
        &quot;numExtents&quot; : 0,&lt;br/&gt;
        &quot;indexes&quot; : 0,&lt;br/&gt;
        &quot;indexSize&quot; : 0,&lt;br/&gt;
        &quot;fileSize&quot; : 0,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;SHELL 1:&lt;br/&gt;
&amp;gt; db.adminCommand(&lt;/p&gt;
{moveprimary: &quot;test&quot;, to: &quot;localhost:27102&quot;}
&lt;p&gt;)&lt;/p&gt;
{ &quot;primary &quot; : &quot;shard0001:localhost:27102&quot;, &quot;ok&quot; : 1 }
&lt;p&gt;&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;raw&quot; : {&lt;br/&gt;
                &quot;localhost:27102&quot; : &lt;/p&gt;
{
                        &quot;db&quot; : &quot;test&quot;,
                        &quot;collections&quot; : 0,
                        &quot;objects&quot; : 0,
                        &quot;avgObjSize&quot; : 0,
                        &quot;dataSize&quot; : 0,
                        &quot;storageSize&quot; : 0,
                        &quot;numExtents&quot; : 0,
                        &quot;indexes&quot; : 0,
                        &quot;indexSize&quot; : 0,
                        &quot;fileSize&quot; : 0,
                        &quot;ok&quot; : 1
                }
&lt;p&gt;        },&lt;br/&gt;
        &quot;objects&quot; : 0,&lt;br/&gt;
        &quot;avgObjSize&quot; : NaN,&lt;br/&gt;
        &quot;dataSize&quot; : 0,&lt;br/&gt;
        &quot;storageSize&quot; : 0,&lt;br/&gt;
        &quot;numExtents&quot; : 0,&lt;br/&gt;
        &quot;indexes&quot; : 0,&lt;br/&gt;
        &quot;indexSize&quot; : 0,&lt;br/&gt;
        &quot;fileSize&quot; : 0,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.test.insert({_id:&quot;bob&quot;, value: 1});&lt;/p&gt;

&lt;p&gt;SHELL 2:&lt;br/&gt;
&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;raw&quot; : {&lt;br/&gt;
                &quot;localhost:27101&quot; : &lt;/p&gt;
{
                        &quot;db&quot; : &quot;test&quot;,
                        &quot;collections&quot; : 0,
                        &quot;objects&quot; : 0,
                        &quot;avgObjSize&quot; : 0,
                        &quot;dataSize&quot; : 0,
                        &quot;storageSize&quot; : 0,
                        &quot;numExtents&quot; : 0,
                        &quot;indexes&quot; : 0,
                        &quot;indexSize&quot; : 0,
                        &quot;fileSize&quot; : 0,
                        &quot;ok&quot; : 1
                }
&lt;p&gt;        },&lt;br/&gt;
        &quot;objects&quot; : 0,&lt;br/&gt;
        &quot;avgObjSize&quot; : NaN,&lt;br/&gt;
        &quot;dataSize&quot; : 0,&lt;br/&gt;
        &quot;storageSize&quot; : 0,&lt;br/&gt;
        &quot;numExtents&quot; : 0,&lt;br/&gt;
        &quot;indexes&quot; : 0,&lt;br/&gt;
        &quot;indexSize&quot; : 0,&lt;br/&gt;
        &quot;fileSize&quot; : 0,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.test.insert({_id:&quot;bob&quot;, value: 2});&lt;/p&gt;

&lt;p&gt;Note that if you restart the second mongos at this point, the document {_id:&quot;bob&quot;, value: 2} is lost forever, as it was persisted on the wrong mongod.&lt;/p&gt;</description>
                <environment></environment>
        <key id="19391">SERVER-3413</key>
            <summary>moveprimary doesn&apos;t propagate changes to other mongos instances</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="-1">Unassigned</assignee>
                                    <reporter username="bross@playdom.com">Bryon Ross</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Jul 2011 23:15:07 +0000</created>
                <updated>Wed, 6 Mar 2013 18:10:15 +0000</updated>
                            <resolved>Thu, 17 May 2012 15:02:34 +0000</resolved>
                                    <version>1.8.2</version>
                                                    <component>Sharding</component>
                                        <votes>3</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="282731" author="jblackburn" created="Wed, 6 Mar 2013 18:10:15 +0000"  >&lt;p&gt;When was this fixed? I saw this on 2.2.1:&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8870&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-8870&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="61346" author="jon.ivmark" created="Wed, 19 Oct 2011 07:13:20 +0000"  >&lt;p&gt;This caused me some pain the other day (using 1.8.3). Would be really nice if it was fixed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="20767">SERVER-3562</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 19 Oct 2011 07:13:20 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 50 weeks 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 50 weeks 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bross@playdom.com</customfieldvalue>
            <customfieldvalue>jblackburn</customfieldvalue>
            <customfieldvalue>jon.ivmark</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrovvz:</customfieldvalue>

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

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

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