<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:13:31 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-47182] Single-phase index builds should run synchronously on secondaries</title>
                <link>https://jira.mongodb.org/browse/SERVER-47182</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We can&apos;t remove single-phase index builds entirely, but we should consider forcing single-phase builds to run synchronously with oplog batch application. This enables them to stop using ghost timestamps. Single phase builds are only used for empty collections, and to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/235589e9472c53658019a02233970da84b5caf1a/src/mongo/db/system_index.cpp#L165&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;rebuild indexes&lt;/a&gt; admin.system collections (see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47439&quot; title=&quot;IndexBuildsCoordinator::createIndexes() should generate createIndexes oplog entry (single phase index build) for building indexes on empty collection.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47439&quot;&gt;&lt;del&gt;SERVER-47439&lt;/del&gt;&lt;/a&gt;).&lt;br/&gt;
Original description:&lt;/p&gt;

&lt;p&gt;Use two-phase index builds by default. Evaluate and remove logic, where possible, that depends on &lt;a href=&quot;https://github.com/mongodb/mongo/blob/376f311c63df9898cd3028ad0a57a1e01e09e544/src/mongo/db/repl_index_build_state.h#L56&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;IndexBuildProtocol::kSinglePhase&lt;/a&gt;, with the exception of creating indexes on empty collections.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1297113">SERVER-47182</key>
            <summary>Single-phase index builds should run synchronously on secondaries</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13201">Fixed</resolution>
                                        <assignee username="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="louis.williams@mongodb.com">Louis Williams</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Mar 2020 17:29:23 +0000</created>
                <updated>Sun, 29 Oct 2023 22:10:11 +0000</updated>
                            <resolved>Fri, 5 Jun 2020 01:33:18 +0000</resolved>
                                                    <fixVersion>4.7.0</fixVersion>
                                                        <votes>1</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="3191553" author="xgen-internal-githook" created="Fri, 5 Jun 2020 01:02:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47182&quot; title=&quot;Single-phase index builds should run synchronously on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47182&quot;&gt;&lt;del&gt;SERVER-47182&lt;/del&gt;&lt;/a&gt; remove IndexBuildsCoordinator::IndexBuildOptions::replSetAndNotPrimaryAtStart&lt;/p&gt;

&lt;p&gt;This option is only applicable to single-phase index builds on secondaries, which no longer&lt;br/&gt;
go through the IndexBuildsCoordinator.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4042389f588d64e9537253d7879450f3db5efcb1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4042389f588d64e9537253d7879450f3db5efcb1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3191507" author="xgen-internal-githook" created="Thu, 4 Jun 2020 23:42:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47182&quot; title=&quot;Single-phase index builds should run synchronously on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47182&quot;&gt;&lt;del&gt;SERVER-47182&lt;/del&gt;&lt;/a&gt; single-phase index builds should run synchronously on secondaries&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f88b07048ed2641a673ac703bd2db9a9aeff7f90&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f88b07048ed2641a673ac703bd2db9a9aeff7f90&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3191302" author="benety.goh" created="Thu, 4 Jun 2020 21:31:03 +0000"  >&lt;p&gt;Author:&#160;{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}&lt;/p&gt;

&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47182&quot; title=&quot;Single-phase index builds should run synchronously on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47182&quot;&gt;&lt;del&gt;SERVER-47182&lt;/del&gt;&lt;/a&gt;&#160;IndexBuildsCoordinator::createIndex() ignores certain indexing errors during oplog application&lt;/p&gt;

&lt;p&gt;Branch: master&lt;br/&gt;
 &lt;a href=&quot;https://github.com/mongodb/mongo/commit/41b01cdece6f5db6f1a3e85f751b648e5bc0e2da&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/41b01cdece6f5db6f1a3e85f751b648e5bc0e2da&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3191106" author="xgen-internal-githook" created="Thu, 4 Jun 2020 20:00:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47182&quot; title=&quot;Single-phase index builds should run synchronously on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47182&quot;&gt;&lt;del&gt;SERVER-47182&lt;/del&gt;&lt;/a&gt; IndexBuildsCoordinator::createIndexes() accepts single index spec&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1722c72dde1ae8fa6559af6bc431d075324bd91b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1722c72dde1ae8fa6559af6bc431d075324bd91b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3190911" author="xgen-internal-githook" created="Thu, 4 Jun 2020 18:19:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47182&quot; title=&quot;Single-phase index builds should run synchronously on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47182&quot;&gt;&lt;del&gt;SERVER-47182&lt;/del&gt;&lt;/a&gt; include ops in OplogApplierImplTest::runOpsInitialSync() error&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bb3552868ac0c0698d83cb905db5f9667c26f10f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bb3552868ac0c0698d83cb905db5f9667c26f10f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3190309" author="benety.goh" created="Thu, 4 Jun 2020 16:01:55 +0000"  >&lt;p&gt;The &lt;tt&gt;createIndexes&lt;/tt&gt; command is no longer supported as an {{applyOps} } operation. It should be fine to assume that constraints should always be relaxed in &lt;a href=&quot;https://github.com/mongodb/mongo/blob/62ab107ba8f82c5c049a8ec6c987bef0f90f18b5/src/mongo/db/repl/oplog.cpp#L203&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;createIndexForApply()&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3188104" author="benety.goh" created="Wed, 3 Jun 2020 17:31:36 +0000"  >&lt;p&gt;The test IdempotencyTest::IndexWithDifferentOptions expects certain behavior from applying a createIndexes oplog entry that should be preserved.&lt;/p&gt;</comment>
                            <comment id="3187073" author="louis.williams" created="Wed, 3 Jun 2020 14:02:04 +0000"  >&lt;p&gt;Index builds on system indexes only happen once and on empty collections. There is a case where a system index would need to be rebuilt from a collection scan, but only if a user manually deletes it, so I think we should keep system index builds as single-phased.&lt;/p&gt;</comment>
                            <comment id="3186851" author="benety.goh" created="Wed, 3 Jun 2020 11:37:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46601&quot; title=&quot;createIndexes on local database collections should not use two phase index build + commit quorum for building indexes.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46601&quot;&gt;&lt;del&gt;SERVER-46601&lt;/del&gt;&lt;/a&gt; ensures that index builds on standalone are always single-phased.&lt;/p&gt;</comment>
                            <comment id="3186847" author="benety.goh" created="Wed, 3 Jun 2020 11:35:10 +0000"  >&lt;p&gt;Index builds on some system indexes will probably remain single-phased. See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47439&quot; title=&quot;IndexBuildsCoordinator::createIndexes() should generate createIndexes oplog entry (single phase index build) for building indexes on empty collection.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47439&quot;&gt;&lt;del&gt;SERVER-47439&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3071808" author="louis.williams" created="Wed, 6 May 2020 14:40:07 +0000"  >&lt;p&gt;Single-phase index builds aren&apos;t going to be removed completely, but I think we can straighten out some logic and make assertions about the following:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Always used on standalones&lt;/li&gt;
	&lt;li&gt;In replica-sets, only used on empty collections&lt;/li&gt;
	&lt;li&gt;Use &quot;createIndexes&quot; oplog entry&lt;/li&gt;
	&lt;li&gt;On secondaries, are completed synchronously with oplog batch application (because they are only used on empty collections)&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1335052">SERVER-47867</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1365487">SERVER-48465</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="670587">SERVER-38961</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1218778">SERVER-46601</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="674786">SERVER-39079</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="790305">SERVER-41554</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1309766">SERVER-47439</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1372466">SERVER-48593</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 3 Jun 2020 11:35:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 35 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1344</customfieldvalue>
                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 35 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>louis.williams@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxcc5j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr530f:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="3937">Execution Team 2020-06-15</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>
                                

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

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