<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:55 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-1400] Array.sum doesn&apos;t work in final reduce</title>
                <link>https://jira.mongodb.org/browse/SERVER-1400</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&amp;gt; function map() &lt;/p&gt;
{ emit(&apos;count&apos;, 1); }
&lt;p&gt;&amp;gt; function reduce(key, values) &lt;/p&gt;
{ return Array.sum(values) }
&lt;p&gt;&amp;gt; out = db.foo.mapReduce(map, reduce)&lt;br/&gt;
Mon Jul 12 13:20:06 uncaught exception: map reduce failed: {&lt;br/&gt;
	&quot;ok&quot; : 0,&lt;br/&gt;
	&quot;errmsg&quot; : &quot;final reduce failed: &lt;/p&gt;
{ result: \&quot;tmp.mr.mapreduce_1278955206_2\&quot;, assertion: \&quot;invoke failed: JS Error: TypeError: Array.sum is not a function nofile_b:1\&quot;, assertionCode: 9004, errmsg: \&quot;db assertion failure\&quot;, ok: 0.0 }
&lt;p&gt;&quot;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
        <key id="12415">SERVER-1400</key>
            <summary>Array.sum doesn&apos;t work in final reduce</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="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                    </labels>
                <created>Mon, 12 Jul 2010 13:22:18 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:00 +0000</updated>
                            <resolved>Thu, 22 Jul 2010 20:41:55 +0000</resolved>
                                                    <fixVersion>1.5.6</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="16066" author="auto" created="Thu, 22 Jul 2010 20:41:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: fix final reduce scoping &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1400&quot; title=&quot;Array.sum doesn&amp;#39;t work in final reduce&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1400&quot;&gt;&lt;del&gt;SERVER-1400&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/1c2758bf881ebfdebda02185a70709c21da72542&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/1c2758bf881ebfdebda02185a70709c21da72542&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16065" author="auto" created="Thu, 22 Jul 2010 20:31:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: broken test for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1400&quot; title=&quot;Array.sum doesn&amp;#39;t work in final reduce&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1400&quot;&gt;&lt;del&gt;SERVER-1400&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/7eaaa12cc64f410687cb98ce5db12f394d80a031&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/7eaaa12cc64f410687cb98ce5db12f394d80a031&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16064" author="auto" created="Thu, 22 Jul 2010 20:12:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Add a test for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1400&quot; title=&quot;Array.sum doesn&amp;#39;t work in final reduce&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1400&quot;&gt;&lt;del&gt;SERVER-1400&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/cd913168fbb1ba8e8fa32e1e577409b8bfc0f39f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/cd913168fbb1ba8e8fa32e1e577409b8bfc0f39f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16031" author="richard@10gen.com" created="Wed, 21 Jul 2010 22:55:27 +0000"  >&lt;p&gt;M3: &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Wed Jul 21 18:52:37 Assertion: 13388:shard version not ok in Client::Context: your version is too old  ns: test.foo global: 4|3 client: 4|1&lt;br/&gt;
M3: 0x100031c4e 0x100086ba6 0x10017eaa4 0x1002b18a5 0x1002ad915 0x1002ae6c8 0x10017fc48 0x100182bc6 0x100255ad3 0x100259887 0x10025a2bf 0x100128cdd 0x10011118d 0x10011748e 0x100125646 0x100121bfe 0x10027ff64 0x1002ad54b 0x1002ae6c8 0x10017fc48&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 21 Jul 2010 22:55:27 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 30 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_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>
                            13 years, 30 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></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>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>richard.kreuter</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpjq7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hril4n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22075</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_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|ht0syv:</customfieldvalue>

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