<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:04:04 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-23655] CollectionInfoCache is not invalidated when starting an index build</title>
                <link>https://jira.mongodb.org/browse/SERVER-23655</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When running on MMAPv1, &lt;tt&gt;transformAndUpdate&lt;/tt&gt; calls &lt;tt&gt;Collection::updateDocumentWithDamages()&lt;/tt&gt; when performing an in-place update when a background index build is in progress. However, it can&apos;t do this when the field being updated is indexed, as the damage vector update doesn&apos;t take index changes into account.&lt;/p&gt;</description>
                <environment></environment>
        <key id="279097">SERVER-23655</key>
            <summary>CollectionInfoCache is not invalidated when starting an index build</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="kyle.suarez@mongodb.com">Kyle Suarez</assignee>
                                    <reporter username="kyle.suarez@mongodb.com">Kyle Suarez</reporter>
                        <labels>
                            <label>code-only</label>
                    </labels>
                <created>Tue, 12 Apr 2016 16:11:45 +0000</created>
                <updated>Thu, 2 Aug 2018 21:22:54 +0000</updated>
                            <resolved>Fri, 15 Apr 2016 18:57:24 +0000</resolved>
                                    <version>3.3.4</version>
                                    <fixVersion>3.2.6</fixVersion>
                    <fixVersion>3.3.5</fixVersion>
                                    <component>Index Maintenance</component>
                    <component>Internal Code</component>
                    <component>MMAPv1</component>
                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="1237817" author="xgen-internal-githook" created="Sat, 16 Apr 2016 02:42:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;ksuarz@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23655&quot; title=&quot;CollectionInfoCache is not invalidated when starting an index build&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23655&quot;&gt;&lt;del&gt;SERVER-23655&lt;/del&gt;&lt;/a&gt; invalidate CollectionInfoCache on index build&lt;/p&gt;

&lt;p&gt;This forces a rebuild of a collection&apos;s info cache once an index build has&lt;br/&gt;
started, rather than waiting until the build has completed. This way,&lt;br/&gt;
updates occurring while a background index build is in progress correctly know&lt;br/&gt;
that the index will be affected and perform the update accordingly.&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9f3da9f28f1179ff0ee1171b6e714f553e793165&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9f3da9f28f1179ff0ee1171b6e714f553e793165&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1237487" author="xgen-internal-githook" created="Fri, 15 Apr 2016 18:56:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;ksuarz@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23655&quot; title=&quot;CollectionInfoCache is not invalidated when starting an index build&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23655&quot;&gt;&lt;del&gt;SERVER-23655&lt;/del&gt;&lt;/a&gt; invalidate CollectionInfoCache on index build&lt;/p&gt;

&lt;p&gt;This forces a rebuild of a collection&apos;s info cache once an index build has&lt;br/&gt;
started, rather than waiting until the build has completed. This way,&lt;br/&gt;
updates occurring while a background index build is in progress correctly know&lt;br/&gt;
that the index will be affected and perform the update accordingly.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7736f20d7bd202e45f3aca04d183dd79ef37001d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7736f20d7bd202e45f3aca04d183dd79ef37001d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1236288" author="kyle.suarez" created="Thu, 14 Apr 2016 19:36:42 +0000"  >&lt;p&gt;Bisection shows that the bug was introduced in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44432&quot; title=&quot;Per index access stats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44432&quot;&gt;&lt;del&gt;SERVER-2227&lt;/del&gt;&lt;/a&gt;: a &lt;a href=&quot;https://github.com/mongodb/mongo/commit/ae9df7fb11cf359686699aeb9539cb6dc35de675#diff-d4971cf48bb7676e0673e347335bf1f6L213&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;change to index create&lt;/a&gt; moved the cache invalidation of the CollectionInfoCache to after success, so that index usage tracking statistics can be registered.&lt;/p&gt;</comment>
                            <comment id="1233828" author="kyle.suarez" created="Tue, 12 Apr 2016 20:45:36 +0000"  >&lt;p&gt;Looks like the situation is the following:&lt;/p&gt;

&lt;p&gt;The UpdateDriver determines that an update can (possibly) be done in-place if it does &lt;b&gt;not&lt;/b&gt; touch any indexed fields. It does this by &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.3.4/src/mongo/db/ops/update_driver.cpp#L280-L290&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;consulting the collection&apos;s CollectionInfoCache to see if any of its indexed paths are affected&lt;/a&gt;. This CollectionInfoCache &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.3.4/src/mongo/db/catalog/collection_info_cache.cpp#L66-L79&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;correctly includes indexes that are in progress&lt;/a&gt;, but the CollectionInfoCache only &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/catalog/collection_info_cache.cpp#L184-L189&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;regenerates&lt;/a&gt; the indexes it knows about &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.3.4/src/mongo/db/catalog/index_catalog.cpp#L418&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;b&gt;after&lt;/b&gt; the index build has finished successfully&lt;/a&gt;. This means that a background index build in progress won&apos;t be registered in time with the cache, and the UpdateDriver will falsely believe that there&apos;s no need to update any indexes.&lt;/p&gt;

&lt;p&gt;Updating the cache when the index build &lt;b&gt;starts&lt;/b&gt; should fix this, though it&apos;s still unclear if this will affect other behavior.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="270068">SERVER-22970</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="13970">SERVER-44432</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="16812">3.2.6</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>Fri, 15 Apr 2016 18:56:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 43 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/WRITING-1547'>WRITING-1547</a></s>]]></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>greg.mckeon@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 43 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkasf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hskc47:</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="994">Integration 13 (04/22/16)</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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