<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:23:26 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-30327] Introduce ScalarGenerator interface for creating values of different BSON types in idempotency testing</title>
                <link>https://jira.mongodb.org/browse/SERVER-30327</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The &lt;tt&gt;DocumentStructureEnumerator&lt;/tt&gt; class added as part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29795&quot; title=&quot;Recursive document structure generation for testing oplog idempotency&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29795&quot;&gt;&lt;del&gt;SERVER-29795&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9086f5cda50acf570190f7daf1446f045a6bd317/src/mongo/db/repl/idempotency_document_structure.cpp#L72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;always uses 0 for the scalar value in documents it generates&lt;/a&gt;. The &lt;tt&gt;UpdateSequenceGenerator&lt;/tt&gt; class introduced in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29939&quot; title=&quot;Update sequence generation for testing oplog idempotency&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29939&quot;&gt;&lt;del&gt;SERVER-29939&lt;/del&gt;&lt;/a&gt; randomly selects between null, true, false, and double values between &lt;tt&gt;-INT_MAX&lt;/tt&gt; and &lt;tt&gt;INT_MAX&lt;/tt&gt;. In order to be able to detect idempotency issues related to different BSON types (e.g. type fidelity in &lt;tt&gt;$set&lt;/tt&gt;, see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16801&quot; title=&quot;update considers a change in numerical type to be a noop&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16801&quot;&gt;&lt;del&gt;SERVER-16801&lt;/del&gt;&lt;/a&gt;), we should accomodate being able to generate all possible BSON types.&lt;/p&gt;

&lt;p&gt;To work around the lack of a &lt;tt&gt;BSONValue&lt;/tt&gt; class (i.e. a &lt;tt&gt;BSONElement&lt;/tt&gt; is a view into the memory owned by a &lt;tt&gt;BSONObj&lt;/tt&gt;), we should use &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.5.10/src/mongo/db/pipeline/value.h&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the &lt;tt&gt;Value&lt;/tt&gt; class&lt;/a&gt; from the aggregation framework as the generic return type of some kind of &lt;tt&gt;generate()&lt;/tt&gt; method.&lt;/p&gt;

&lt;p&gt;We should have two concrete implementations of the &lt;tt&gt;ScalarGenerator&lt;/tt&gt; interface:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;&lt;b&gt;&lt;tt&gt;TrivialScalarGenerator&lt;/tt&gt;&lt;/b&gt; should just return &lt;tt&gt;Value(0)&lt;/tt&gt; and is what the self-tests for &lt;tt&gt;DocumentStructureEnumerator&lt;/tt&gt; should use.&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;&lt;tt&gt;RandomizedScalarGenerator&lt;/tt&gt;&lt;/b&gt; should implement the existing behavior of &lt;tt&gt;UpdateSequenceGenerator&lt;/tt&gt;.&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="408277">SERVER-30327</key>
            <summary>Introduce ScalarGenerator interface for creating values of different BSON types in idempotency testing</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="may.hoque@mongodb.com">May Hoque</assignee>
                                    <reporter username="max.hirschhorn@mongodb.com">Max Hirschhorn</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Jul 2017 21:22:53 +0000</created>
                <updated>Mon, 30 Oct 2023 23:14:54 +0000</updated>
                            <resolved>Fri, 11 Aug 2017 13:48:56 +0000</resolved>
                                                    <fixVersion>3.5.12</fixVersion>
                                    <component>Replication</component>
                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1646428" author="xgen-internal-githook" created="Fri, 11 Aug 2017 17:12:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;may&apos;, &apos;email&apos;: &apos;may.hoque@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30327&quot; title=&quot;Introduce ScalarGenerator interface for creating values of different BSON types in idempotency testing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30327&quot;&gt;&lt;del&gt;SERVER-30327&lt;/del&gt;&lt;/a&gt; Introduce ScalarGenerator interface for creating values of different BSON types in idempotency testing&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/75c889d8a4b0bdfa8cea7afbdec3541f2b7b79a2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/75c889d8a4b0bdfa8cea7afbdec3541f2b7b79a2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1646131" author="may.hoque" created="Fri, 11 Aug 2017 13:48:56 +0000"  >&lt;p&gt;Have a wonderful day!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="408314">SERVER-30331</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>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_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, 31 Jul 2017 18:50:27 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 26 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-825</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>
                            6 years, 26 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
            <customfieldvalue>may.hoque@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htbmsf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hra3h3:</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="1772">TIG 2017-08-21</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|htb8v3:</customfieldvalue>

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