<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:10:27 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-46084] Don&apos;t use $setUnion in aggregation for finding inconsistent sharded indexes</title>
                <link>https://jira.mongodb.org/browse/SERVER-46084</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The aggregation added in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44916&quot; title=&quot;Test and document a pipeline to find inconsistent indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44916&quot;&gt;&lt;del&gt;SERVER-44916&lt;/del&gt;&lt;/a&gt; and used in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45389&quot; title=&quot;Add metrics tracking how often shards have inconsistent indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45389&quot;&gt;&lt;del&gt;SERVER-45389&lt;/del&gt;&lt;/a&gt; to find inconsistent sharded indexes relies on $setUnion providing a consistent ordering, which is not supported. Instead, the pipeline will only consider fields known to be important, like name, key, and expireAfterSeconds until&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29425&quot; title=&quot;Add an expression to sort an array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29425&quot;&gt;&lt;del&gt;SERVER-29425&lt;/del&gt;&lt;/a&gt; adds a supported way to sort an array.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1143538">SERVER-46084</key>
            <summary>Don&apos;t use $setUnion in aggregation for finding inconsistent sharded indexes</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="13201">Fixed</resolution>
                                        <assignee username="jack.mulrow@mongodb.com">Jack Mulrow</assignee>
                                    <reporter username="jack.mulrow@mongodb.com">Jack Mulrow</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Feb 2020 19:50:42 +0000</created>
                <updated>Sun, 29 Oct 2023 22:12:20 +0000</updated>
                            <resolved>Tue, 24 Mar 2020 22:25:47 +0000</resolved>
                                                    <fixVersion>4.2.6</fixVersion>
                    <fixVersion>4.4.0-rc0</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3012974" author="xgen-internal-githook" created="Mon, 30 Mar 2020 15:10:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jack Mulrow&apos;, &apos;email&apos;: &apos;jack.mulrow@mongodb.com&apos;, &apos;username&apos;: &apos;jsmulrow&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46084&quot; title=&quot;Don&amp;#39;t use $setUnion in aggregation for finding inconsistent sharded indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46084&quot;&gt;&lt;del&gt;SERVER-46084&lt;/del&gt;&lt;/a&gt; Don&apos;t use setUnion in aggregation for finding inconsistent sharded indexes&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 2eaf0ba58cca9e96276e8a07a3d46f0a7b83289d)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/57d5c7e6cee04491102b7b104e4a0f9531cb18f0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/57d5c7e6cee04491102b7b104e4a0f9531cb18f0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3003539" author="xgen-internal-githook" created="Fri, 27 Mar 2020 00:47:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Cheahuychou Mao&apos;, &apos;username&apos;: &apos;cheahuychou&apos;, &apos;email&apos;: &apos;cheahuychou.mao@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45389&quot; title=&quot;Add metrics tracking how often shards have inconsistent indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45389&quot;&gt;&lt;del&gt;SERVER-45389&lt;/del&gt;&lt;/a&gt; Add metrics tracking how often shards have inconsistent indexes&lt;/p&gt;

&lt;p&gt;(cherry picked from commit ea696eb7a27f18c21223a3ff94d9124f06698af5)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46084&quot; title=&quot;Don&amp;#39;t use $setUnion in aggregation for finding inconsistent sharded indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46084&quot;&gt;&lt;del&gt;SERVER-46084&lt;/del&gt;&lt;/a&gt; Don&apos;t use setUnion in aggregation for finding inconsistent sharded indexes&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 2eaf0ba58cca9e96276e8a07a3d46f0a7b83289d)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/decfd07f05e7d9a65cfd07e42c07456f5a72b6f4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/decfd07f05e7d9a65cfd07e42c07456f5a72b6f4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2995402" author="xgen-internal-githook" created="Tue, 24 Mar 2020 22:20:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jack Mulrow&apos;, &apos;username&apos;: &apos;jsmulrow&apos;, &apos;email&apos;: &apos;jack.mulrow@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46084&quot; title=&quot;Don&amp;#39;t use $setUnion in aggregation for finding inconsistent sharded indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46084&quot;&gt;&lt;del&gt;SERVER-46084&lt;/del&gt;&lt;/a&gt; Don&apos;t use setUnion in aggregation for finding inconsistent sharded indexes&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2eaf0ba58cca9e96276e8a07a3d46f0a7b83289d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2eaf0ba58cca9e96276e8a07a3d46f0a7b83289d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2914046" author="jack.mulrow" created="Thu, 27 Feb 2020 13:44:25 +0000"  >&lt;p&gt;David Storch, thanks for the update. I already had this ticket mostly done though, so I figure I may as well just knock it out now so we don&apos;t have to worry about the timeline for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29425&quot; title=&quot;Add an expression to sort an array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29425&quot;&gt;&lt;del&gt;SERVER-29425&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2910016" author="david.storch" created="Wed, 26 Feb 2020 13:41:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jack.mulrow&quot; class=&quot;user-hover&quot; rel=&quot;jack.mulrow&quot;&gt;jack.mulrow&lt;/a&gt;, as a heads up &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pawel.terlecki&quot; class=&quot;user-hover&quot; rel=&quot;pawel.terlecki&quot;&gt;pawel.terlecki&lt;/a&gt; is currently working on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29425&quot; title=&quot;Add an expression to sort an array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29425&quot;&gt;&lt;del&gt;SERVER-29425&lt;/del&gt;&lt;/a&gt;. I&apos;m not sure if he knows exactly when it will land, but I wanted to let you know in case that affects your plan for this ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="1289474">DOCS-13540</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1203504">SERVER-46483</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10020">
                    <name>Gantt Dependency</name>
                                            <outwardlinks description="has to be done before">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1031560">SERVER-44916</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></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, 26 Feb 2020 13:41:24 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 45 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>This ticket updated and finalized the aggregation pipeline we expect users to run to verify the indexes for a sharded collection are correct across all shards that was initially added by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44916&quot; title=&quot;Test and document a pipeline to find inconsistent indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44916&quot;&gt;&lt;strike&gt;SERVER-44916&lt;/strike&gt;&lt;/a&gt;. The pipeline is written out in full in this jstest: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/2eaf0ba58cca9e96276e8a07a3d46f0a7b83289d/jstests/sharding/index_stats_pipeline_detects_inconsistent_indexes.js#L20-L72&quot;&gt;https://github.com/mongodb/mongo/blob/2eaf0ba58cca9e96276e8a07a3d46f0a7b83289d/jstests/sharding/index_stats_pipeline_detects_inconsistent_indexes.js#L20-L72&lt;/a&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1361</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, 45 weeks, 2 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>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jack.mulrow@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwpxc7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwdwzr:</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="3572">Sharding 2020-02-24</customfieldvalue>
    <customfieldvalue id="3653">Sharding 2020-03-09</customfieldvalue>
    <customfieldvalue id="3744">Sharding 2020-03-23</customfieldvalue>
    <customfieldvalue id="3745">Sharding 2020-04-06</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16944"><![CDATA[Docs]]></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|hwpjlj:</customfieldvalue>

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