<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:18:11 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-28455] Implement LogicalClockFixture</title>
                <link>https://jira.mongodb.org/browse/SERVER-28455</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Set up a mocked-up objects for testing replica-set causal consistent reads. &lt;br/&gt;
The fixture should provide the following functionality:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;set LogicalClock&lt;/li&gt;
	&lt;li&gt;write to an opLog&lt;/li&gt;
	&lt;li&gt;read from an opLog&lt;/li&gt;
	&lt;li&gt;write to secondary and primary nodes (separately by setting repl coordinator mode)&lt;/li&gt;
	&lt;li&gt;read from the secondary and primary nodes&lt;/li&gt;
	&lt;li&gt;clocksource skew&lt;/li&gt;
	&lt;li&gt;disable/enable readConcernMajority&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Implementation:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Use existing LogicalClockTest class can be used as a base, inherit from ShardingMongodTestFixture&lt;/li&gt;
	&lt;li&gt;override setUp to&lt;br/&gt;
a) set up logicalClock on serviceContext&lt;br/&gt;
b) add a clockSource mock&lt;br/&gt;
c) add a keyManager mock&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Integrate functionality from logical_clock_test.cpp and reuse the new fixture there.&lt;/li&gt;
	&lt;li&gt;Add one test that causes a write to opLog and check that the result matches the current clusterTime - may be using get lastAppliedOptime() method of replicationCoordinator&lt;/li&gt;
&lt;/ul&gt;

</description>
                <environment></environment>
        <key id="367350">SERVER-28455</key>
            <summary>Implement LogicalClockFixture</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="9">Done</resolution>
                                        <assignee username="jack.mulrow@mongodb.com">Jack Mulrow</assignee>
                                    <reporter username="misha.tyulenev@mongodb.com">Misha Tyulenev</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Mar 2017 17:16:20 +0000</created>
                <updated>Wed, 6 Dec 2017 21:15:54 +0000</updated>
                            <resolved>Mon, 1 May 2017 19:44:46 +0000</resolved>
                                                    <fixVersion>3.5.7</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1561733" author="xgen-internal-githook" created="Mon, 1 May 2017 19:43:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jsmulrow&apos;, u&apos;name&apos;: u&apos;Jack Mulrow&apos;, u&apos;email&apos;: u&apos;jack.mulrow@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28455&quot; title=&quot;Implement LogicalClockFixture&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28455&quot;&gt;&lt;del&gt;SERVER-28455&lt;/del&gt;&lt;/a&gt; Implement LogicalClockTestFixture&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/362acc0a59396322db5e5b6d845875d83e76cc0e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/362acc0a59396322db5e5b6d845875d83e76cc0e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1559218" author="misha.tyulenev" created="Thu, 27 Apr 2017 15:01:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=renctan&quot; class=&quot;user-hover&quot; rel=&quot;renctan&quot;&gt;renctan&lt;/a&gt; write/read to/from secondary and primary nodes here I mean the mocked up primary/secondary from the replication_coordinator_mock point&lt;br/&gt;
clocksource skew - set the mocktime in the future and in the past with respect to the current clusterTime&lt;br/&gt;
disable/enable readConcernMajority  on the server, when its disabled the readConcern: &lt;/p&gt;
{level:&quot;majority&quot;}
&lt;p&gt; will fail.&lt;/p&gt;</comment>
                            <comment id="1558530" author="renctan" created="Wed, 26 Apr 2017 18:14:56 +0000"  >&lt;blockquote&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;write to secondary and primary nodes (separately by setting repl coordinator mode)&lt;/li&gt;
	&lt;li&gt;read from the secondary and primary nodes&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;Can you clarify what this means? Are the primary and secondary nodes remote in this context? Can they be just endpoints for NetworkTestEnv?&lt;/p&gt;

&lt;blockquote&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;clocksource skew&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;Can you clarify what constitutes a skew and skew relative to what?&lt;/p&gt;

&lt;blockquote&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;disable/enable readConcernMajority&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;Is this enabling the feature in the server or just enabling in the request?&lt;/p&gt;</comment>
                            <comment id="1557613" author="misha.tyulenev" created="Tue, 25 Apr 2017 19:15:32 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=renctan&quot; class=&quot;user-hover&quot; rel=&quot;renctan&quot;&gt;renctan&lt;/a&gt;   For the test the value returned with getLastAppliedOpTime will suffice. The ClockSourceMock is what is needed for this fixture, thanks!&lt;/p&gt;</comment>
                            <comment id="1557605" author="renctan" created="Tue, 25 Apr 2017 19:02:19 +0000"  >&lt;p&gt;Do you actually need to be able to write to a real oplog or just need a ReplCoordinator with a configurable opTime that it returns?&lt;/p&gt;

&lt;p&gt;Won&apos;t the existing &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.5.6/src/mongo/util/clock_source_mock.h&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;clock source mock&lt;/a&gt; fit your needs?&lt;/p&gt;</comment>
                            <comment id="1557573" author="misha.tyulenev" created="Tue, 25 Apr 2017 18:36:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=renctan&quot; class=&quot;user-hover&quot; rel=&quot;renctan&quot;&gt;renctan&lt;/a&gt;  wdyt?&lt;/p&gt;</comment>
                            <comment id="1557567" author="esha.maharishi@10gen.com" created="Tue, 25 Apr 2017 18:31:51 +0000"  >&lt;p&gt;extending from the ShardingMongodTestFixture to inherit the ServiceContext, ReplicationCoordinator, ephemeral storage engine, and OpObserver lgtm&lt;/p&gt;

&lt;p&gt;note that it uses a ReplicationCoordinatorMock rather than a real ReplicationCoordinator - i believe it should still support the functionality you need, though&lt;/p&gt;</comment>
                            <comment id="1557554" author="misha.tyulenev" created="Tue, 25 Apr 2017 18:23:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=esha.maharishi&quot; class=&quot;user-hover&quot; rel=&quot;esha.maharishi&quot;&gt;esha.maharishi&lt;/a&gt; please ack the approach&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.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_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, 25 Apr 2017 18:31:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 41 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-221</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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 41 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jack.mulrow@mongodb.com</customfieldvalue>
            <customfieldvalue>misha.tyulenev@mongodb.com</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht4ogn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hswnpj:</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="1616">Sharding 2017-05-08</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|hs4dc7:</customfieldvalue>

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