<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:34:32 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-33771] Vectored inserts should not generate optimes for multi-statement transactions</title>
                <link>https://jira.mongodb.org/browse/SERVER-33771</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently, performing vectored inserts generates OpTimes for every insert operation, which sets the &lt;tt&gt;commit_timestamp&lt;/tt&gt; on the current WiredTiger transaction for every operation &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/oplog.cpp#L164&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This is problematic because calling &lt;tt&gt;prepare_transaction&lt;/tt&gt; is not possible after a commit timestamp has been set. &lt;/p&gt;

&lt;p&gt;The OpTime should be generated once the transaction commits.&lt;/p&gt;</description>
                <environment></environment>
        <key id="508229">SERVER-33771</key>
            <summary>Vectored inserts should not generate optimes for multi-statement transactions</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="13203">Gone away</resolution>
                                        <assignee username="louis.williams@mongodb.com">Louis Williams</assignee>
                                    <reporter username="louis.williams@mongodb.com">Louis Williams</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Mar 2018 23:25:34 +0000</created>
                <updated>Fri, 27 Oct 2023 20:43:34 +0000</updated>
                            <resolved>Fri, 23 Mar 2018 14:59:50 +0000</resolved>
                                                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1843278" author="louis.williams" created="Fri, 23 Mar 2018 14:56:36 +0000"  >&lt;p&gt;This was fixed by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33306&quot; title=&quot;Add prepareUnitOfWork method to RecoveryUnit&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33306&quot;&gt;&lt;del&gt;SERVER-33306&lt;/del&gt;&lt;/a&gt;, specifically here: &lt;a href=&quot;https://github.com/mongodb/mongo/commit/9799d8b7223205635ccb428bbec1ba4d947ba13b#diff-ec361df31c497fa7753ef37d7dfb31e3R336&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9799d8b7223205635ccb428bbec1ba4d947ba13b#diff-ec361df31c497fa7753ef37d7dfb31e3R336&lt;/a&gt; &lt;/p&gt;
</comment>
                            <comment id="1835054" author="louis.williams" created="Thu, 15 Mar 2018 16:04:10 +0000"  >&lt;p&gt;I don&apos;t believe this actually a problem, and I think I was mistaken when I filed this initially.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;tt&gt;doTxn&lt;/tt&gt; calls &lt;a href=&quot;https://github.com/mongodb/mongo/blob/388d8c1245e61c4fa906254f711aec8ee7fe7486/src/mongo/db/repl/do_txn.cpp#L172-L173&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;repl::applyOperation_inlock&lt;/a&gt; without setting the &quot;ts&quot; field on the operation object.&lt;/li&gt;
	&lt;li&gt;applyOperation_inlock &lt;a href=&quot;https://github.com/mongodb/mongo/blob/388d8c1245e61c4fa906254f711aec8ee7fe7486/src/mongo/db/repl/oplog.cpp#L1120-L1125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;will not generate timestamps on a replicated collection&lt;/a&gt;, even if &lt;a href=&quot;https://github.com/mongodb/mongo/blob/388d8c1245e61c4fa906254f711aec8ee7fe7486/src/mongo/db/repl/oplog.cpp#L1256-L1259&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the &quot;ts&quot; field were set&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;applyOperation_inlock calls  &lt;a href=&quot;https://github.com/mongodb/mongo/blob/388d8c1245e61c4fa906254f711aec8ee7fe7486/src/mongo/db/repl/oplog.cpp#L1280-L1281&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Collection::insertDocument(s)&lt;/a&gt; with an empty timestamp, the which is &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/catalog/collection_impl.cpp#L479-L489&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;passed all the way&lt;/a&gt; to the RecordStore&lt;/li&gt;
	&lt;li&gt;Note: Collection::insertDocument &lt;a href=&quot;https://github.com/mongodb/mongo/blob/388d8c1245e61c4fa906254f711aec8ee7fe7486/src/mongo/db/catalog/collection_impl.cpp#L383-L391&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;wraps for the vectored insert function &quot;insertDocuments&quot;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;WiredTigerRecordStore::insertRecords &lt;a href=&quot;https://github.com/mongodb/mongo/blob/388d8c1245e61c4fa906254f711aec8ee7fe7486/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp#L1145-L1156&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;doesn&apos;t timestamp the transaction if the Timestamp is null&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=geert.bosch&quot; class=&quot;user-hover&quot; rel=&quot;geert.bosch&quot;&gt;geert.bosch&lt;/a&gt; Let me know if you think this logic is correct. I also can confirm this because the prepare function would fail if a timestamp were set before it was called, and this is not the case.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="497459">SERVER-33306</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>2.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_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 46 weeks, 5 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-710</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>
                            5 years, 46 weeks, 5 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>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|hts4xr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htiruf:</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="2199">Storage NYC 2018-03-26</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|htrr4f:</customfieldvalue>

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