<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:50:13 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-60588] $multiply incorrectly throws an error in some cases in the classic engine</title>
                <link>https://jira.mongodb.org/browse/SERVER-60588</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I came across a simple case in the classic engine where $multiply throws an error when it shouldn&apos;t. Here is the repro:&lt;/p&gt;

&lt;p&gt;&amp;gt;&#160;db.adminCommand({setParameter: 1, internalQueryForceClassicEngine: true});&lt;br/&gt;
 &amp;gt; db.c.drop();&lt;br/&gt;
 &amp;gt; db.c.insert({a: 1.0});&lt;br/&gt;
 &amp;gt;&#160;db.c.find({}, {x: {$multiply: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;$a&amp;quot;,&#160;1.0e+35&amp;#93;&lt;/span&gt;}})&lt;/p&gt;

&lt;p&gt;When I run the commands above in the classic engine, I get the following error:&lt;/p&gt;

&lt;p&gt;&quot;Executor error during find command :: caused by :: Can&apos;t coerce out of range value -9.8696e+34 to long&quot;&lt;/p&gt;

&lt;p&gt;The example above is simply multiplying the double 1.0 by the double&#160;1.0e+35. There is no reason that this operation should fail.&lt;/p&gt;

&lt;p&gt;The goal of this task is to investigate why the failure described above is occurring, and to implement the appropriate fix.&lt;/p&gt;

&lt;p&gt;As part of this work, once the issue is solved, $multiply should be marked as sbe-compatible again (undoing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60583&quot; title=&quot;Temporarily disable $multiply in SBE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60583&quot;&gt;&lt;del&gt;SERVER-60583&lt;/del&gt;&lt;/a&gt;.) &lt;/p&gt;</description>
                <environment></environment>
        <key id="1894323">SERVER-60588</key>
            <summary>$multiply incorrectly throws an error in some cases in the classic engine</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="13201">Fixed</resolution>
                                        <assignee username="jennifer.peshansky@mongodb.com">Jennifer Peshansky</assignee>
                                    <reporter username="andrew.paroski@mongodb.com">Drew Paroski</reporter>
                        <labels>
                    </labels>
                <created>Sat, 9 Oct 2021 07:23:52 +0000</created>
                <updated>Sun, 29 Oct 2023 21:47:34 +0000</updated>
                            <resolved>Wed, 20 Oct 2021 19:12:46 +0000</resolved>
                                                    <fixVersion>4.4.11</fixVersion>
                    <fixVersion>4.2.18</fixVersion>
                    <fixVersion>4.0.28</fixVersion>
                    <fixVersion>5.0.4</fixVersion>
                    <fixVersion>5.1.0-rc2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4167648" author="xgen-internal-githook" created="Wed, 3 Nov 2021 18:19:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jennifer Peshansky&apos;, &apos;email&apos;: &apos;jennifer.peshansky@mongodb.com&apos;, &apos;username&apos;: &apos;jenniferpeshansky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60588&quot; title=&quot;$multiply incorrectly throws an error in some cases in the classic engine&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60588&quot;&gt;&lt;del&gt;SERVER-60588&lt;/del&gt;&lt;/a&gt; Don&apos;t attempt to coerce a double product to long&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62)&lt;br/&gt;
(cherry picked from commit f6c05d4d028fe6712e81396be335fd144124c561)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a91d571a9ca63a0cbc939c041a41a6a037911c94&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a91d571a9ca63a0cbc939c041a41a6a037911c94&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4167639" author="xgen-internal-githook" created="Wed, 3 Nov 2021 18:16:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jennifer Peshansky&apos;, &apos;email&apos;: &apos;jennifer.peshansky@mongodb.com&apos;, &apos;username&apos;: &apos;jenniferpeshansky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60588&quot; title=&quot;$multiply incorrectly throws an error in some cases in the classic engine&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60588&quot;&gt;&lt;del&gt;SERVER-60588&lt;/del&gt;&lt;/a&gt; Don&apos;t attempt to coerce a double product to long&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62)&lt;br/&gt;
(cherry picked from commit f6c05d4d028fe6712e81396be335fd144124c561)&lt;br/&gt;
(cherry picked from commit 9aa24cb9aaa12578a81361e64a5e57dbe1c34b1e)&lt;br/&gt;
(cherry picked from commit 4ea0988ab20a69369b8a8ceaf5015c94f253a289)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/062c6c13cabb6dc26bed460954982925f2e9f611&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/062c6c13cabb6dc26bed460954982925f2e9f611&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4167637" author="xgen-internal-githook" created="Wed, 3 Nov 2021 18:16:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jennifer Peshansky&apos;, &apos;email&apos;: &apos;jennifer.peshansky@mongodb.com&apos;, &apos;username&apos;: &apos;jenniferpeshansky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60588&quot; title=&quot;$multiply incorrectly throws an error in some cases in the classic engine&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60588&quot;&gt;&lt;del&gt;SERVER-60588&lt;/del&gt;&lt;/a&gt; Don&apos;t attempt to coerce a double product to long&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62)&lt;br/&gt;
(cherry picked from commit f6c05d4d028fe6712e81396be335fd144124c561)&lt;br/&gt;
(cherry picked from commit 9aa24cb9aaa12578a81361e64a5e57dbe1c34b1e)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/60ce48d31de63b06dab060bd79533d5aa5b72375&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/60ce48d31de63b06dab060bd79533d5aa5b72375&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4136446" author="xgen-internal-githook" created="Wed, 20 Oct 2021 20:08:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jennifer Peshansky&apos;, &apos;email&apos;: &apos;jennifer.peshansky@mongodb.com&apos;, &apos;username&apos;: &apos;jenniferpeshansky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60588&quot; title=&quot;$multiply incorrectly throws an error in some cases in the classic engine&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60588&quot;&gt;&lt;del&gt;SERVER-60588&lt;/del&gt;&lt;/a&gt; Don&apos;t attempt to coerce a double product to long&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62)&lt;br/&gt;
Branch: v5.1&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cb1e9d3b1e5c964d3a54fd9f6d85da817e7d5372&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cb1e9d3b1e5c964d3a54fd9f6d85da817e7d5372&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4136409" author="xgen-internal-githook" created="Wed, 20 Oct 2021 19:51:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jennifer Peshansky&apos;, &apos;email&apos;: &apos;jennifer.peshansky@mongodb.com&apos;, &apos;username&apos;: &apos;jenniferpeshansky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60588&quot; title=&quot;$multiply incorrectly throws an error in some cases in the classic engine&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60588&quot;&gt;&lt;del&gt;SERVER-60588&lt;/del&gt;&lt;/a&gt; Don&apos;t attempt to coerce a double product to long&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f6c05d4d028fe6712e81396be335fd144124c561&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f6c05d4d028fe6712e81396be335fd144124c561&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4136267" author="xgen-internal-githook" created="Wed, 20 Oct 2021 19:10:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jennifer Peshansky&apos;, &apos;email&apos;: &apos;jennifer.peshansky@mongodb.com&apos;, &apos;username&apos;: &apos;jenniferpeshansky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60588&quot; title=&quot;$multiply incorrectly throws an error in some cases in the classic engine&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60588&quot;&gt;&lt;del&gt;SERVER-60588&lt;/del&gt;&lt;/a&gt; Don&apos;t attempt to coerce a double product to long&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3df7340a53ce8b8c7e0fa7e29e7d25490e9032cf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3df7340a53ce8b8c7e0fa7e29e7d25490e9032cf&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1894130">SERVER-60584</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>6.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_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="31998">5.0.3-rc0</customfieldvalue>
    <customfieldvalue id="32264">5.1.0-rc2</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22495"><![CDATA[v5.1]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></customfieldvalue>
    <customfieldvalue key="15640"><![CDATA[v4.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, 11 Oct 2021 18:23:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 14 weeks 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_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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2361</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>
                            2 years, 14 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>149.0</customfieldvalue>

                        </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>andrew.paroski@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jennifer.peshansky@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0517b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr2nzb:</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="5267">QE 2021-10-18</customfieldvalue>
    <customfieldvalue id="5269">QE 2021-11-01</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|i04ncn:</customfieldvalue>

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