<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:09:33 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-25563] create MongodTestFixture and make ConfigServerTestFixture extend it</title>
                <link>https://jira.mongodb.org/browse/SERVER-25563</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Goal:&lt;/p&gt;

&lt;p&gt;Be able to write unit tests that require both&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;network interface&lt;/li&gt;
	&lt;li&gt;storage engine&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;but are shard-specific. Currently, at least the following projects require this:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;All Nodes Shard Aware&lt;/li&gt;
	&lt;li&gt;Range Deleter&lt;/li&gt;
	&lt;li&gt;Remove DistLock from Split and Merge&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This is a band-aid before more comprehensive improvements in PM-595.&lt;/p&gt;

&lt;p&gt;ShardTestFixture should:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;use NetworkInterfaceMock (for network interface)&lt;/li&gt;
	&lt;li&gt;extend ServiceContextMongoDTest (for storage engine)&lt;/li&gt;
	&lt;li&gt;have ClusterRole::ShardServer&lt;/li&gt;
	&lt;li&gt;have ShardingCatalogClientImpl&lt;/li&gt;
	&lt;li&gt;maybe have a real DistLockCatalog and DistLockManager**&lt;/li&gt;
	&lt;li&gt;have a real OpObserver&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;ConfigServerTestFixture should &lt;b&gt;additionally&lt;/b&gt;:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;have ClusterRole::ConfigServer&lt;/li&gt;
	&lt;li&gt;have ShardingCatalogManagerImpl&lt;/li&gt;
	&lt;li&gt;have a mock network for addShard and executor for addShard&lt;/li&gt;
	&lt;li&gt;definitely have a real DistLockCatalog and DistLockManager**&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;**The shard-specific unit tests may not actually use the DistLockCatalog and DistLockManager. Eventually, those classes should be owned by the ShardingCatalogManager, but currently they are accessed by the catalog manager through ShardingCatalogClient. Check if we can get away with just passing nullptr for the DistLockManager to the ShardingCatalogClient (if it&apos;s unused by tests), else must use DistLockCatalogImpl and ReplSetDistLockManager.&lt;/p&gt;</description>
                <environment></environment>
        <key id="308318">SERVER-25563</key>
            <summary>create MongodTestFixture and make ConfigServerTestFixture extend it</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="esha.maharishi@mongodb.com">Esha Maharishi</assignee>
                                    <reporter username="esha.maharishi@mongodb.com">Esha Maharishi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Aug 2016 16:19:26 +0000</created>
                <updated>Sat, 19 Nov 2016 00:05:40 +0000</updated>
                            <resolved>Thu, 1 Sep 2016 19:26:20 +0000</resolved>
                                                    <fixVersion>3.3.14</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1374955" author="xgen-internal-githook" created="Thu, 1 Sep 2016 19:26:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Esha Maharishi&apos;, u&apos;email&apos;: u&apos;esha.maharishi@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25563&quot; title=&quot;create MongodTestFixture and make ConfigServerTestFixture extend it&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25563&quot;&gt;&lt;del&gt;SERVER-25563&lt;/del&gt;&lt;/a&gt; create MongodTestFixture and make ConfigServerTestFixture extend it&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/518df32a41a080fdbf042b2fc3e6d7c38ad97980&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/518df32a41a080fdbf042b2fc3e6d7c38ad97980&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1354607" author="dianna.hohensee" created="Thu, 11 Aug 2016 19:25:26 +0000"  >&lt;p&gt;ConfigServerTestFixture already has ClusterRole::ConfigServer, a NetworkInterfaceMock, and real DistLockCatalog+DistLockManager. &lt;/p&gt;

&lt;p&gt;If you&apos;re use the TaskExecutor in the code you&apos;re testing on the config server, it will run fine with ConfigServerTestFixture and defining the onCommand for catching the network call as per testing usual &amp;#8211; I&apos;d expect TaskExecutor use cases that don&apos;t use the network should run fine as well because the TaskExecutors are set up like normal, just with a mock network.&lt;/p&gt;

&lt;p&gt;I don&apos;t have much to add about the shard test fixture. Just to second making the DistLockManager a nullptr because we don&apos;t have shard unit tests on it &amp;#8211; I think? &amp;#8211; and we&apos;re trying to generally do away with it so we aren&apos;t planning to make any.&lt;/p&gt;</comment>
                            <comment id="1354333" author="esha.maharishi@10gen.com" created="Thu, 11 Aug 2016 16:25:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dianna.hohensee&quot; class=&quot;user-hover&quot; rel=&quot;dianna.hohensee&quot;&gt;dianna.hohensee&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer&quot; class=&quot;user-hover&quot; rel=&quot;spencer&quot;&gt;spencer&lt;/a&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;  please review the description to see if any additional functionality is immediately required in either fixture.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="312780">SERVER-25871</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="312782">SERVER-25872</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="312783">SERVER-25873</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="295655">SERVER-24702</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>3.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>Thu, 11 Aug 2016 19:25:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 23 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-595</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>
                            7 years, 23 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>esha.maharishi@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|hrjzaf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrciqn:</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="1017">Sharding 2016-08-29</customfieldvalue>
    <customfieldvalue id="1234">Sharding 2016-09-19</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|hseobz:</customfieldvalue>

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