<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18:36 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>[CDRIVER-3627] &apos;CommitQuorum&apos; option support for &apos;createIndexes&#8217; command on MongoDB 4.4</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3627</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>
&lt;h4&gt;&lt;a name=&quot;DescriptionofDriversTicket%3A&quot;&gt;&lt;/a&gt;Description of Drivers Ticket:&lt;/h4&gt;
&lt;p&gt;    Execution team has introduced a new option named &#8216;commitQuorum&#8217; to &#8216;createIndexes&#8217; command as part of PM-253 (Two phase commit for index build). &#8216;commitQuorum&#8217; is very similar to writeConcern options which can accept an integer or a string - &#8220;majority&#8221;and custom write concern option. In addition to those values, the new &#8216;commitQuorum&#8217; option will also accept &#8220;votingMembers&#8221; string value. A primary node that coordinates an index build can&#8217;t complete an index build until it has received votes from secondaries stating that they have each finished collection scanning and draining phase for that index build. The number of votes the primary has to wait before committing an index depends on the commitQuorum option&#8217;s value. The primary is also eligible to vote and it will vote for itself.   &lt;/p&gt;

&lt;p&gt;The main purpose of this new &#8216;commitQuorum&#8217; option is to prevent slow secondaries replication from getting blocked on applying &#8216;commitIndexBuild&#8217; oplog entry waiting for the index build completion on that secondary.   &lt;/p&gt;

&lt;p&gt;The current default value for the &#8216;commitQuorum&#8217; option in 4.4 RC0 is &#8220;majority&#8221;, i.e., majority of voting data bearing nodes. Currently, some implementation issues with initial sync and abort index build logic have prevented us from making the default value for &#8216;commitQuorum&#8217; as &#8216;votingMembers&#8217;,  i.e., all voting data bearing nodes.  For MongoDB 4.4 GA, the default value for &#8216;commitQuorum&#8217; will be &#8216;all&#8217; and we are working towards making the default value change (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46823&quot; title=&quot;Enable default for index commit quorum as &amp;quot;votingMembers&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46823&quot;&gt;&lt;del&gt;SERVER-46823&lt;/del&gt;&lt;/a&gt;).   &lt;/p&gt;

&lt;p&gt;For a quick reference, if a user wants to create an index &#8216;x_1&#8217; on foo.bar collection with a commit quorum value as &#8220;votingMembers&#8221;, then the shell syntax will be:      &lt;/p&gt;

&lt;p&gt;&amp;gt;&amp;gt; db.runCommand(&lt;br/&gt;
{createIndexes: &#8220;bar&#8221;,          &lt;br/&gt;
indexes: &lt;span class=&quot;error&quot;&gt;&amp;#91;{name: &amp;quot;x_1&amp;quot;, key: {x: 1}}&amp;#93;&lt;/span&gt;,           &lt;br/&gt;
commitQuorum: &quot;votingMembers&quot;});  &lt;/p&gt;

&lt;p&gt;Say, if it&#8217;s a 3 node replica set (PSA), then the primary index build will wait for 2 votes (PS) to commit the index build.&lt;br/&gt;
    See &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-966&quot; title=&quot;&amp;#39;CommitQuorum&amp;#39; option support for &amp;#39;createIndexes&#8217; command on MongoDB 4.4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-966&quot;&gt;&lt;del&gt;DRIVERS-966&lt;/del&gt;&lt;/a&gt; for updated details.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="1318316">CDRIVER-3627</key>
            <summary>&apos;CommitQuorum&apos; option support for &apos;createIndexes&#8217; command on MongoDB 4.4</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Apr 2020 21:30:38 +0000</created>
                <updated>Mon, 13 Jul 2020 21:39:59 +0000</updated>
                            <resolved>Thu, 7 May 2020 01:42:33 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3073064" author="kevin.albertson" created="Thu, 7 May 2020 01:42:33 +0000"  >&lt;p&gt;libmongoc has three index creation helpers:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;mongoc_collection_ensure_index&lt;/li&gt;
	&lt;li&gt;mongoc_collection_create_index&lt;/li&gt;
	&lt;li&gt;mongoc_collection_create_index_with_opts&lt;br/&gt;
All are deprecated, and users are advised to use create indexes using command helpers per the &lt;a href=&quot;http://mongoc.org/libmongoc/current/create-indexes.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Creating Indexes&lt;/a&gt; guide.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Since the commitQuorum option should not be validated through command helpers, there is no work to be done.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1278573">DRIVERS-966</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1318317">CXX-1998</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1408225">CDRIVER-3748</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-3508</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hw912v:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>