<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:37:30 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-34686] `dropIndex` blocks secondary if it is executing `createIndexes` currently</title>
                <link>https://jira.mongodb.org/browse/SERVER-34686</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Observed behavior is:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Secondary &lt;tt&gt;mongod&lt;/tt&gt; instances block on Global lock and effectively all operations except building index are waiting for Global lock.&lt;/li&gt;
	&lt;li&gt;Replication is effectively paused.&lt;/li&gt;
	&lt;li&gt;Due to replication pause all operations with writeConcern:majority on the primary instance are blocked. E. g. &lt;tt&gt;db.t.insertOne({foo:1}, {w:&apos;majority&apos;})&lt;/tt&gt; will hang until one of secondaries catch up with primary.&lt;/li&gt;
	&lt;li&gt;All read operations with &lt;tt&gt;readPreference&lt;/tt&gt; set to &lt;tt&gt;secondaryPreferred&lt;/tt&gt; also hang until indices are built on that secondary. E. g.&lt;br/&gt;
&lt;tt&gt;db.getMongo().setReadPref(&apos;secondaryPreferred&apos;);&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;db.t.find();&lt;/tt&gt;&lt;br/&gt;
will hang.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Results of &lt;tt&gt;db.currentOp()&lt;/tt&gt; from secondary instance with hanged &lt;tt&gt;db.t.find()&lt;/tt&gt; are attached to the issue.&lt;/p&gt;

&lt;p&gt;This behavior is very surprising and isn&apos;t documented, so I consider it a bug.&lt;/p&gt;</description>
                <environment></environment>
        <key id="534517">SERVER-34686</key>
            <summary>`dropIndex` blocks secondary if it is executing `createIndexes` currently</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="sz">Sergey Zagursky</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Apr 2018 12:50:58 +0000</created>
                <updated>Tue, 8 May 2018 14:29:58 +0000</updated>
                            <resolved>Thu, 26 Apr 2018 13:48:26 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1874822" author="sz" created="Thu, 26 Apr 2018 13:17:33 +0000"  >&lt;p&gt;Yes, highly likely.&lt;/p&gt;</comment>
                            <comment id="1874809" author="james.wahlin@10gen.com" created="Thu, 26 Apr 2018 13:01:26 +0000"  >&lt;p&gt;I believe this is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-21307&quot; title=&quot;Replicated DDL (catalog) operation during background index build blocks reads/writes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-21307&quot;&gt;&lt;del&gt;SERVER-21307&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="237967">SERVER-21307</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="184998" name="scratch_18.json" size="9971" author="sz" created="Thu, 26 Apr 2018 12:49:26 +0000"/>
                    </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>Thu, 26 Apr 2018 13:01:26 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 41 weeks, 6 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>james.wahlin@mongodb.com</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>sz</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htwi8n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htnkx3:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;To reproduce the questionable behavior we&apos;ll need:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;MongoDB replicaset with primary instance and at least one secondary instance.&lt;/li&gt;
	&lt;li&gt;Sufficiently large collection &lt;tt&gt;t&lt;/tt&gt; for enough time to be available for observation.&lt;/li&gt;
	&lt;li&gt;Some index already built on that collection. E. g. &lt;tt&gt;db.t.createIndex({foo:1})&lt;/tt&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Steps to reproduce are:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Start building new index on the collection.&lt;br/&gt;
&lt;tt&gt;db.t.createIndex({foo:1,_id:1})&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Wait until primary reports index build completion.&lt;/li&gt;
	&lt;li&gt;Drop unique index before secondaries catch up with building new index. &lt;tt&gt;db.t.dropIndex(&apos;foo_1&apos;)&lt;/tt&gt;.&lt;/li&gt;
&lt;/ol&gt;
</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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htw4gv:</customfieldvalue>

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