<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:34:25 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-33736] Vectored inserts incorrectly timestamp index updates</title>
                <link>https://jira.mongodb.org/browse/SERVER-33736</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;A &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bc660344cf/src/mongo/db/storage/record_store.h#L380-L383&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;vectored insert&lt;/a&gt; is when one WriteUnitOfWork (transaction) performs multiple document inserts before committing. This mechanism is used on primaries for bulk writes and secondaries during oplog application.&lt;/p&gt;

&lt;p&gt;A typical insert executes in the order of:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Insert new document into the record store.&lt;/li&gt;
	&lt;li&gt;For each index, calculate the document&apos;s index key and update the index.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;A vectored insert instead works as:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Insert document A into the record store.&lt;/li&gt;
	&lt;li&gt;Insert document B into the record store.&lt;/li&gt;
	&lt;li&gt;Calculate and update indexes for A.&lt;/li&gt;
	&lt;li&gt;Calculate and update indexes for B.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Performing the same actions but &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bc660344cf/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp#L1142-L1155&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;adding in timestamps&lt;/a&gt;:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Set the timestamp to T(A).&lt;/li&gt;
	&lt;li&gt;Insert document A into the record store (gets T(A)).&lt;/li&gt;
	&lt;li&gt;Set the timestamp to T(B).&lt;/li&gt;
	&lt;li&gt;Insert document B into the record store (gets T(B)).&lt;/li&gt;
	&lt;li&gt;Update indexes for A (gets T(B)).&lt;/li&gt;
	&lt;li&gt;Update indexes for B (gets T(B)).&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Scanning the collection at T(A) will show document A, but searching for A via an index will not succeed.&lt;/p&gt;

&lt;p&gt;Secondaries are currently immune to observing this anomaly; read timestamps on a secondary (e.g: majority reads) must take place on a batch boundary. This was intended to ensure that unique indexes could not be observed in a temporarily inconsistent state.&lt;/p&gt;</description>
                <environment></environment>
        <key id="507570">SERVER-33736</key>
            <summary>Vectored inserts incorrectly timestamp index updates</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="milkie@mongodb.com">Eric Milkie</assignee>
                                    <reporter username="daniel.gottlieb@mongodb.com">Daniel Gottlieb</reporter>
                        <labels>
                            <label>PM-834</label>
                    </labels>
                <created>Thu, 8 Mar 2018 02:51:01 +0000</created>
                <updated>Sun, 29 Oct 2023 22:34:01 +0000</updated>
                            <resolved>Wed, 23 May 2018 19:22:44 +0000</resolved>
                                    <version>3.6.0</version>
                    <version>3.7.1</version>
                                    <fixVersion>4.0.0-rc1</fixVersion>
                    <fixVersion>4.1.1</fixVersion>
                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="1900527" author="xgen-internal-githook" created="Thu, 24 May 2018 12:19:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;milkie&apos;, &apos;name&apos;: &apos;Eric Milkie&apos;, &apos;email&apos;: &apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33736&quot; title=&quot;Vectored inserts incorrectly timestamp index updates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33736&quot;&gt;&lt;del&gt;SERVER-33736&lt;/del&gt;&lt;/a&gt; do not run jstest on mobile&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 43403ac1eace3d0cd95ecd33cd1eb101b274a34c)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ee4991b1d2dcb9442531dc7ba0ce4b134ba4f25c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ee4991b1d2dcb9442531dc7ba0ce4b134ba4f25c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1900526" author="xgen-internal-githook" created="Thu, 24 May 2018 12:19:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;milkie&apos;, &apos;name&apos;: &apos;Eric Milkie&apos;, &apos;email&apos;: &apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33736&quot; title=&quot;Vectored inserts incorrectly timestamp index updates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33736&quot;&gt;&lt;del&gt;SERVER-33736&lt;/del&gt;&lt;/a&gt; do not run jstest on mobile&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/43403ac1eace3d0cd95ecd33cd1eb101b274a34c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/43403ac1eace3d0cd95ecd33cd1eb101b274a34c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1899955" author="xgen-internal-githook" created="Wed, 23 May 2018 19:27:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;milkie&apos;, &apos;name&apos;: &apos;Eric Milkie&apos;, &apos;email&apos;: &apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33736&quot; title=&quot;Vectored inserts incorrectly timestamp index updates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33736&quot;&gt;&lt;del&gt;SERVER-33736&lt;/del&gt;&lt;/a&gt; timestamp index updates from vector inserts&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 2ac08ad44e8218de90228ae948cd3abc6f4d99eb)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6c0d5a86180cee650c3b149009189e623c1af8f1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6c0d5a86180cee650c3b149009189e623c1af8f1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1899944" author="xgen-internal-githook" created="Wed, 23 May 2018 19:21:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;milkie&apos;, &apos;name&apos;: &apos;Eric Milkie&apos;, &apos;email&apos;: &apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33736&quot; title=&quot;Vectored inserts incorrectly timestamp index updates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33736&quot;&gt;&lt;del&gt;SERVER-33736&lt;/del&gt;&lt;/a&gt; timestamp index updates from vector inserts&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2ac08ad44e8218de90228ae948cd3abc6f4d99eb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2ac08ad44e8218de90228ae948cd3abc6f4d99eb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1852108" author="milkie" created="Mon, 2 Apr 2018 14:34:56 +0000"  >&lt;p&gt;This work is only necessary to ensure that atClusterTime works properly.  Global Point in Time Reads is the only project that will consume atClusterTime, so this work can be done as part of the completion of GPITR.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </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>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    <customfieldvalue key="15141"><![CDATA[v3.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>Mon, 2 Apr 2018 14:34:56 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 37 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>0.0</customfieldvalue>

                        </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>daniel.gottlieb@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hts0wf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htnovb:</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="2320">Storage NYC 2018-05-21</customfieldvalue>
    <customfieldvalue id="2328">Storage NYC 2018-06-04</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|htrn33:</customfieldvalue>

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