<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:48 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-1708] moveprimary does not work when moving a db between replica set shards</title>
                <link>https://jira.mongodb.org/browse/SERVER-1708</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;moveprimary works for individual server shards but not for replica set shards.&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;br/&gt;
1. Create one replica set, eg. &apos;repset1/127.0.0.1:30000,127.0.0.1:30001&apos;&lt;br/&gt;
2. Add data to &apos;test&apos; db in above set.&lt;br/&gt;
2. Create second replica set, eg &apos;repset2/127.0.0.1:30006,127.0.0.1:30007&apos;&lt;br/&gt;
3. Make them both shards in a sharding set up.&lt;br/&gt;
4. mongosConn.getDB(&apos;admin&apos;).runCommand (&lt;/p&gt;
{moveprimary: &apos;test&apos;, to: &apos;repset2/127.0.0.1:30006,127.0.0.1:30007&apos;}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;runCommand yields following error:&lt;/p&gt;
{ &quot;ok&quot; : 0, &quot;errmsg&quot; : &quot;clone failed&quot; }
&lt;p&gt;assert failed : &lt;/p&gt;
{ &quot;ok&quot; : 0, &quot;errmsg&quot; : &quot;clone failed&quot; }
&lt;p&gt;Error(&quot;Printing Stack Trace (lines are 0-based in spidermonkey)&quot;)@:0&lt;br/&gt;
()@shell/utils.js:20&lt;br/&gt;
(&quot;assert failed : &lt;/p&gt;
{ \&quot;ok\&quot; : 0, \&quot;errmsg\&quot; : \&quot;clone failed\&quot; }
&lt;p&gt;&quot;)@shell/utils.js:31&lt;br/&gt;
(0,&quot;&lt;/p&gt;
{ \&quot;ok\&quot; : 0, \&quot;errmsg\&quot; : \&quot;clone failed\&quot; }
&lt;p&gt;&quot;)@shell/utils.js:41&lt;br/&gt;
moveDB(&lt;span class=&quot;error&quot;&gt;&amp;#91;object Mongo&amp;#93;&lt;/span&gt;,&quot;test&quot;,&quot;repset2/127.0.0.1:30006,127.0.0.1:30007&quot;)@jstests/tony/infra.js:80&lt;br/&gt;
@/Users/afsheenb/MongoDB/mongo/jstests/tony/ajh1.js:48&lt;br/&gt;
Tue Aug 31 11:33:13 uncaught exception: assert failed : &lt;/p&gt;
{ &quot;ok&quot; : 0, &quot;errmsg&quot; : &quot;clone failed&quot; }
&lt;p&gt;failed to load: /Users/afsheenb/MongoDB/mongo/jstests/tony/ajh1.js&lt;/p&gt;

&lt;p&gt;mongos log:&lt;br/&gt;
Tue Aug 31 11:33:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; movePrimary: moving test primary from: repset1:repset1/127.0.0.1:30000,127.0.0.1:30001 to: repset2:repset2/127.0.0.1:30006,127.0.0.1:30007&lt;br/&gt;
Tue Aug 31 11:33:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; clone failed&lt;/p&gt;
{ errmsg: &quot;couldn&apos;t connect to server repset1/127.0.0.1:30000,127.0.0.1:30001&quot;, ok: 0.0 }</description>
                <environment>&amp;gt; ./mongod --version&lt;br/&gt;
db version v1.7.0-pre-, pdfile version 4.5&lt;br/&gt;
Tue Aug 31 12:04:20 git version: 0845e6c517c2f1a2065287252e149d7efffef13c&lt;br/&gt;
&lt;br/&gt;
&amp;gt; ./mongos --version&lt;br/&gt;
Tue Aug 31 12:04:54 ./mongos db version v1.7.0-pre-, pdfile version 4.5 starting (--help for usage)&lt;br/&gt;
Tue Aug 31 12:04:54 git version: 0845e6c517c2f1a2065287252e149d7efffef13c&lt;br/&gt;
Tue Aug 31 12:04:54 sys info: Darwin nonserviam.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_42&lt;br/&gt;
</environment>
        <key id="12966">SERVER-1708</key>
            <summary>moveprimary does not work when moving a db between replica set shards</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="tonyh">Tony Hannan</assignee>
                                    <reporter username="tonyh">Tony Hannan</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Aug 2010 16:06:29 +0000</created>
                <updated>Tue, 12 Jul 2016 00:20:07 +0000</updated>
                            <resolved>Mon, 25 Oct 2010 21:54:55 +0000</resolved>
                                    <version>1.6.1</version>
                                    <fixVersion>1.7.2</fixVersion>
                                    <component>Replication</component>
                    <component>Sharding</component>
                                        <votes>2</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="19624" author="tonyh" created="Mon, 25 Oct 2010 22:12:47 +0000"  >&lt;p&gt;Test case moved to jstests/slowNightly/moveprimary-replset.js&lt;/p&gt;</comment>
                            <comment id="19623" author="tonyh" created="Mon, 25 Oct 2010 21:54:55 +0000"  >&lt;p&gt;It works. Test at jstests/grid/moveprimary-replset.js&lt;/p&gt;</comment>
                            <comment id="19567" author="eliot" created="Sun, 24 Oct 2010 22:31:22 +0000"  >&lt;p&gt;can you test again?&lt;br/&gt;
I think you may have actually fixed&lt;/p&gt;</comment>
                            <comment id="18601" author="eliot" created="Mon, 27 Sep 2010 21:16:28 +0000"  >&lt;p&gt;No workarounds - will get this fixed soon though&lt;/p&gt;</comment>
                            <comment id="18600" author="destari" created="Mon, 27 Sep 2010 21:10:25 +0000"  >&lt;p&gt;Any workarounds?&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>Mon, 27 Sep 2010 21:10:25 +0000</customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>destari</customfieldvalue>
            <customfieldvalue>tonyh</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpg6n:</customfieldvalue>

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

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

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