<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:49 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-1018] reIndex on master fails to create indexes on slave</title>
                <link>https://jira.mongodb.org/browse/SERVER-1018</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Slave log output:&lt;/p&gt;

&lt;p&gt;Tue Apr 13 14:41:19 repl: from host:10.211.143.79:27017&lt;br/&gt;
Tue Apr 13 14:41:35 building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for buzzfeed.report&lt;br/&gt;
Tue Apr 13 14:41:35 Buildindex buzzfeed.report idxNo:1 { name: &quot;&lt;em&gt;id&lt;/em&gt;&quot;, ns: &quot;buzzfeed.report&quot;, key: &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; }&lt;br/&gt;
Tue Apr 13 14:41:42 	 external sort used : 2 files  in 6 secs&lt;br/&gt;
Tue Apr 13 14:41:43 done for 1153414 records 7.802secs&lt;br/&gt;
Tue Apr 13 14:41:43 CMD: reIndex buzzfeed.report&lt;br/&gt;
Tue Apr 13 14:41:43 User Exception 10058:not master&lt;br/&gt;
Tue Apr 13 14:41:43  buzzfeed.$cmd  Caught Assertion in insert , continuing&lt;br/&gt;
Tue Apr 13 14:41:43 insert  exception userassert:not master 0ms&lt;br/&gt;
Tue Apr 13 14:41:43 User Exception 10058:not master&lt;br/&gt;
Tue Apr 13 14:41:43  buzzfeed.$cmd  Caught Assertion in insert , continuing&lt;br/&gt;
Tue Apr 13 14:41:43 insert  exception userassert:not master 0ms&lt;br/&gt;
Tue Apr 13 14:41:43 repl:   applied 5 operations&lt;br/&gt;
Tue Apr 13 14:41:43 repl:  end sync_pullOpLog syncedTo: Tue Apr 13 14:41:35 2010 4bc4badf:3&lt;/p&gt;

&lt;p&gt;Actions:&lt;/p&gt;

&lt;p&gt;MASTER:&lt;br/&gt;
&amp;gt; db.report.ensureIndex(&lt;/p&gt;
{time:1}
&lt;p&gt;);&lt;br/&gt;
&amp;gt; db.report.getIndexes()          &lt;br/&gt;
[&lt;br/&gt;
	{&lt;br/&gt;
		&quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;,&lt;br/&gt;
		&quot;ns&quot; : &quot;buzzfeed.report&quot;,&lt;br/&gt;
		&quot;key&quot; : &lt;/p&gt;
{
			&quot;_id&quot; : 1
		}
&lt;p&gt;	},&lt;br/&gt;
	{&lt;br/&gt;
		&quot;_id&quot; : ObjectId(&quot;4bc4ba93b69879591542997a&quot;),&lt;br/&gt;
		&quot;ns&quot; : &quot;buzzfeed.report&quot;,&lt;br/&gt;
		&quot;key&quot; : &lt;/p&gt;
{
			&quot;time&quot; : 1
		}
&lt;p&gt;,&lt;br/&gt;
		&quot;name&quot; : &quot;time_1&quot;&lt;br/&gt;
	}&lt;br/&gt;
]&lt;/p&gt;

&lt;p&gt;SLAVE:&lt;br/&gt;
&amp;gt; db.report.getIndexes()&lt;br/&gt;
[&lt;br/&gt;
	{&lt;br/&gt;
		&quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;,&lt;br/&gt;
		&quot;ns&quot; : &quot;buzzfeed.report&quot;,&lt;br/&gt;
		&quot;key&quot; : &lt;/p&gt;
{
			&quot;_id&quot; : 1
		}
&lt;p&gt;	},&lt;br/&gt;
	{&lt;br/&gt;
		&quot;_id&quot; : ObjectId(&quot;4bc4b902b698795915429979&quot;),&lt;br/&gt;
		&quot;ns&quot; : &quot;buzzfeed.report&quot;,&lt;br/&gt;
		&quot;key&quot; : &lt;/p&gt;
{
			&quot;time&quot; : 1
		}
&lt;p&gt;,&lt;br/&gt;
		&quot;name&quot; : &quot;time_1&quot;&lt;br/&gt;
	}&lt;br/&gt;
]&lt;br/&gt;
&amp;gt; &lt;/p&gt;

&lt;p&gt;MASTER:&lt;br/&gt;
&amp;gt; db.report.reIndex()&lt;/p&gt;

&lt;p&gt;SLAVE:&lt;br/&gt;
&amp;gt; db.report.getIndexes()&lt;br/&gt;
[ ]&lt;/p&gt;</description>
                <environment></environment>
        <key id="11779">SERVER-1018</key>
            <summary>reIndex on master fails to create indexes on slave</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="kristina">Kristina Chodorow</reporter>
                        <labels>
                    </labels>
                <created>Tue, 13 Apr 2010 18:04:09 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:51 +0000</updated>
                            <resolved>Tue, 11 May 2010 10:49:13 +0000</resolved>
                                    <version>1.4.0</version>
                                    <fixVersion>1.5.2</fixVersion>
                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="17887" author="eliot" created="Wed, 8 Sep 2010 13:39:53 +0000"  >&lt;p&gt;Added a new case: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1755&quot; title=&quot;reIndex doesn&amp;#39;t propogate correctly on replica sets&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1755&quot;&gt;&lt;del&gt;SERVER-1755&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Can you add any info you have there&lt;/p&gt;</comment>
                            <comment id="17886" author="grmblfrz" created="Wed, 8 Sep 2010 13:37:37 +0000"  >&lt;p&gt;master:&lt;br/&gt;
&amp;gt; db.foo.save({_id:1, _o:2})&lt;br/&gt;
&amp;gt; db.foo.ensureIndex({_o:1})&lt;br/&gt;
slave:&lt;br/&gt;
&amp;gt; db.foo.getIndexes()&lt;br/&gt;
[&lt;br/&gt;
        {&lt;br/&gt;
                &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;,&lt;br/&gt;
                &quot;ns&quot; : &quot;test.foo&quot;,&lt;br/&gt;
                &quot;key&quot; : &lt;/p&gt;
{
                        &quot;_id&quot; : 1
                }
&lt;p&gt;        },&lt;br/&gt;
        {&lt;br/&gt;
                &quot;_id&quot; : ObjectId(&quot;4c8790ce2ee529bbe28fbe59&quot;),&lt;br/&gt;
                &quot;ns&quot; : &quot;test.foo&quot;,&lt;br/&gt;
                &quot;key&quot; : &lt;/p&gt;
{
                        &quot;_o&quot; : 1
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;name&quot; : &quot;_o_1&quot;&lt;br/&gt;
        }&lt;br/&gt;
]&lt;br/&gt;
master:&lt;br/&gt;
&amp;gt; db.foo.reIndex()          &lt;br/&gt;
{&lt;br/&gt;
        &quot;nIndexesWas&quot; : 2,&lt;br/&gt;
        &quot;msg&quot; : &quot;indexes dropped for collection&quot;,&lt;br/&gt;
        &quot;ok&quot; : 1,&lt;br/&gt;
        &quot;nIndexes&quot; : 2,&lt;br/&gt;
        &quot;indexes&quot; : [&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;,&lt;br/&gt;
                        &quot;ns&quot; : &quot;test.foo&quot;,&lt;br/&gt;
                        &quot;key&quot; : &lt;/p&gt;
{
                                &quot;_id&quot; : 1
                        }
&lt;p&gt;                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : ObjectId(&quot;4c8790ce2ee529bbe28fbe59&quot;),&lt;br/&gt;
                        &quot;ns&quot; : &quot;test.foo&quot;,&lt;br/&gt;
                        &quot;key&quot; : &lt;/p&gt;
{
                                &quot;_o&quot; : 1
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;name&quot; : &quot;_o_1&quot;&lt;br/&gt;
                }&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
slave:&lt;br/&gt;
&amp;gt; db.foo.getIndexes()&lt;br/&gt;
[ ]&lt;/p&gt;


&lt;p&gt;master log:&lt;br/&gt;
Wed Sep  8 15:33:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for test.foo&lt;br/&gt;
Wed Sep  8 15:33:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; Buildindex test.foo idxNo:0 { name: &quot;&lt;em&gt;id&lt;/em&gt;&quot;, ns: &quot;test.foo&quot;, key: &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; }&lt;br/&gt;
Wed Sep  8 15:33:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; done for 0 records 0secs&lt;br/&gt;
Wed Sep  8 15:34:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _o: 1.0 }
&lt;p&gt; for test.foo&lt;br/&gt;
Wed Sep  8 15:34:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; Buildindex test.foo idxNo:1 { _id: ObjectId(&apos;4c8790ce2ee529bbe28fbe59&apos;), ns: &quot;test.foo&quot;, key: &lt;/p&gt;
{ _o: 1.0 }
&lt;p&gt;, name: &quot;_o_1&quot; }&lt;br/&gt;
Wed Sep  8 15:34:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; done for 1 records 0.024secs&lt;br/&gt;
Wed Sep  8 15:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; CMD: reIndex test.foo&lt;br/&gt;
Wed Sep  8 15:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for test.foo&lt;br/&gt;
Wed Sep  8 15:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; Buildindex test.foo idxNo:0 { name: &quot;&lt;em&gt;id&lt;/em&gt;&quot;, ns: &quot;test.foo&quot;, key: &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; }&lt;br/&gt;
Wed Sep  8 15:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; done for 1 records 0secs&lt;br/&gt;
Wed Sep  8 15:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _o: 1.0 }
&lt;p&gt; for test.foo&lt;br/&gt;
Wed Sep  8 15:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; Buildindex test.foo idxNo:1 { _id: ObjectId(&apos;4c8790ce2ee529bbe28fbe59&apos;), ns: &quot;test.foo&quot;, key: &lt;/p&gt;
{ _o: 1.0 }
&lt;p&gt;, name: &quot;_o_1&quot; }&lt;br/&gt;
Wed Sep  8 15:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4410&amp;#93;&lt;/span&gt; done for 1 records 0secs&lt;/p&gt;


&lt;p&gt;slave log:&lt;br/&gt;
Wed Sep  8 15:33:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for test.foo&lt;br/&gt;
Wed Sep  8 15:33:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; Buildindex test.foo idxNo:0 { name: &quot;&lt;em&gt;id&lt;/em&gt;&quot;, ns: &quot;test.foo&quot;, key: &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; }&lt;br/&gt;
Wed Sep  8 15:33:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; done for 0 records 0secs&lt;br/&gt;
Wed Sep  8 15:34:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _o: 1.0 }
&lt;p&gt; for test.foo&lt;br/&gt;
Wed Sep  8 15:34:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; Buildindex test.foo idxNo:1 { _id: ObjectId(&apos;4c8790ce2ee529bbe28fbe59&apos;), ns: &quot;test.foo&quot;, key: &lt;/p&gt;
{ _o: 1.0 }
&lt;p&gt;, name: &quot;_o_1&quot; }&lt;br/&gt;
Wed Sep  8 15:34:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; done for 1 records 0secs&lt;br/&gt;
Wed Sep  8 15:34:22 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 10.228.113.45:38438 #3330&lt;br/&gt;
Wed Sep  8 15:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; CMD: reIndex test.foo&lt;/p&gt;</comment>
                            <comment id="17885" author="grmblfrz" created="Wed, 8 Sep 2010 13:19:43 +0000"  >&lt;p&gt;This issue does not seem to be fixed for replication sets (I&apos;m running 1.6.2 on linux). If I reIndex a collection on the current master, the collection looses all indexes on the slave (even the index on _id)&lt;/p&gt;</comment>
                            <comment id="14163" author="auto" created="Tue, 11 May 2010 10:49:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: don&apos;t use direct client for creating index on slave with reIndex &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1018&quot; title=&quot;reIndex on master fails to create indexes on slave&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1018&quot;&gt;&lt;del&gt;SERVER-1018&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/e20da4adcf400b2e43572b58c1f7f5d546492a76&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/e20da4adcf400b2e43572b58c1f7f5d546492a76&lt;/a&gt;&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 11 May 2010 10:49:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 24 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>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, 24 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>grmblfrz</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpnkf:</customfieldvalue>

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

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

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