<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:20:14 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-49553] Allow point-in-time read transactions on ephemeralForTest to obtain the appropriate snapshot</title>
                <link>https://jira.mongodb.org/browse/SERVER-49553</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Once &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49547&quot; title=&quot;ephemeralForTest needs to keep track of the available history based on the oldest timestamp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49547&quot;&gt;&lt;del&gt;SERVER-49547&lt;/del&gt;&lt;/a&gt; is completed, the ephemeralForTest KVEngine is going to maintain a map of available history that snapshots can be opened on for transactions as long as they&apos;re not older than the &lt;b&gt;oldest timestamp&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;Most of the work here will be performed on the ephemeralForTest RecoveryUnit to support point-in-time read transactions to obtain the appropriate snapshot for the transaction.&lt;/p&gt;

&lt;p&gt;In this ticket we should be able to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ee7c632b25d56f2d7c47edeeb3a81ef206f61924/src/mongo/db/storage/recovery_unit.h#L387-L423&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;implement support&lt;/a&gt; for a few&#160;&lt;b&gt;ReadSource&lt;/b&gt;&apos;s, namely the following:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;ReadSource::kUnset&lt;/li&gt;
	&lt;li&gt;ReadSource::kNoTimestamp&lt;/li&gt;
	&lt;li&gt;ReadSource::kProvided&lt;/li&gt;
	&lt;li&gt;ReadSource::kAllDurableSnapshot (all durable is already &lt;a href=&quot;https://github.com/mongodb/mongo/blob/86d94765b9030c9aa9adb3899277456e64bbd348/src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_kv_engine.h#L133-L136&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;implemented&lt;/a&gt;)&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;We&apos;ll need to implement the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ee7c632b25d56f2d7c47edeeb3a81ef206f61924/src/mongo/db/storage/recovery_unit.h#L443-L453&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;setTimestampReadSource method&lt;/a&gt; on ephemeralForTest&apos;s RecoveryUnit.&lt;/p&gt;

&lt;p&gt;The &lt;b&gt;ReadSource&lt;/b&gt;&apos;s listed above should behave in the following ways:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;ReadSource::kUnset and ReadSource::kNoTimestamp will return the latest snapshot available from the storage engine. This is related to today&apos;s behaviour.&lt;/li&gt;
	&lt;li&gt;ReadSource::kProvided will return the latest snapshot available from the storage engine whose timestamp is less than or equal to the provided timestamp.
	&lt;ol&gt;
		&lt;li&gt;If the provided timestamp is less than the&#160;&lt;b&gt;oldest timestamp&lt;/b&gt;, we should return an error.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1412383">SERVER-49553</key>
            <summary>Allow point-in-time read transactions on ephemeralForTest to obtain the appropriate snapshot</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="13201">Fixed</resolution>
                                        <assignee username="bynn.lee@mongodb.com">Bynn Lee</assignee>
                                    <reporter username="gregory.wlodarek@mongodb.com">Gregory Wlodarek</reporter>
                        <labels>
                            <label>intern_ephemeral_for_test</label>
                    </labels>
                <created>Thu, 16 Jul 2020 17:27:17 +0000</created>
                <updated>Sun, 29 Oct 2023 22:05:44 +0000</updated>
                            <resolved>Thu, 6 Aug 2020 14:14:50 +0000</resolved>
                                                    <fixVersion>4.7.0</fixVersion>
                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3324471" author="xgen-internal-githook" created="Thu, 6 Aug 2020 14:12:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Bynn Lee&apos;, &apos;email&apos;: &apos;bynn.lee@mongodb.com&apos;, &apos;username&apos;: &apos;bynn&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49553&quot; title=&quot;Allow point-in-time read transactions on ephemeralForTest to obtain the appropriate snapshot&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49553&quot;&gt;&lt;del&gt;SERVER-49553&lt;/del&gt;&lt;/a&gt; Allow point-in-time read transactions on ephemeralForTest to obtain the appropriate snapshot&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6f776d77902dd28fa71fb657bb9483fc383ac01b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6f776d77902dd28fa71fb657bb9483fc383ac01b&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1412151">SERVER-49547</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1416477">SERVER-49792</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1356702">SERVER-48314</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1404815">SERVER-49391</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>1.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_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>Tue, 4 Aug 2020 17:04:42 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 26 weeks, 6 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/SERVER-49547'>SERVER-49547</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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></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, 26 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bynn.lee@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>gregory.wlodarek@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxvbsf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxi8fb:</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="3940">Execution Team 2020-07-27</customfieldvalue>
    <customfieldvalue id="3941">Execution Team 2020-08-10</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|hxuy1r:</customfieldvalue>

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