<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:29 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-4264] add option to map/reduce output to output to the primary of a replica set or a different server</title>
                <link>https://jira.mongodb.org/browse/SERVER-4264</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In the mongo shell, after connecting directly to a secondary, I can &quot;use local&quot;, and then save documents to that database.  I know they&apos;re not replicated, and that I need to copy the result somewhere else if I want to preserve it.&lt;/p&gt;

&lt;p&gt;However, if I try to use the &quot;out&quot; option of &quot;mapreduce&quot; to write the output of a map-reduce job to &quot;local&quot;, I get an error that I can&apos;t do that.  It looks like the write is checked too high up in the call stack.  It looks like that comes from here:  &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/db/commands/mr.cpp#L984-991&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/db/commands/mr.cpp#L984-991&lt;/a&gt; .&lt;/p&gt;</description>
                <environment></environment>
        <key id="24817">SERVER-4264</key>
            <summary>add option to map/reduce output to output to the primary of a replica set or a different server</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="backlog-query-execution">Backlog - Query Execution</assignee>
                                    <reporter username="dan@mongodb.com">Daniel Pasette</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Nov 2011 20:01:09 +0000</created>
                <updated>Tue, 6 Dec 2022 05:39:30 +0000</updated>
                            <resolved>Fri, 4 Feb 2022 15:09:26 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>MapReduce</component>
                                        <votes>15</votes>
                                    <watches>19</watches>
                                                                                                                <comments>
                            <comment id="4335963" author="esha.bhargava" created="Fri, 4 Feb 2022 15:07:32 +0000"  >&lt;p&gt;Closing these tickets as part of the deprecation of mapReduce.&lt;/p&gt;</comment>
                            <comment id="169747" author="mark@digitalbrandmine.com" created="Mon, 1 Oct 2012 13:49:55 +0000"  >&lt;p&gt;The KEY use-case for us needing this feature is being able to do Reporting/Analytics processing on one of the SECONDARIES.  &lt;/p&gt;</comment>
                            <comment id="120712" author="azat" created="Thu, 17 May 2012 20:12:49 +0000"  >&lt;p&gt;@T. Dampier, I agree, and &quot;output&quot; to remote collection I think a good decision&lt;/p&gt;

&lt;p&gt;Correct me if I am wrong: if PRIMARY of replicaset changed - than MR return error &quot;db assertion 13312 &#8211; when it cannot commit its result collection because former PRIMARY is no longer PRIMARY&quot; ?&lt;/p&gt;</comment>
                            <comment id="120700" author="dampier" created="Thu, 17 May 2012 19:47:19 +0000"  >&lt;p&gt;@azat  - for some background on this thread, see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4364&quot; title=&quot;Method for running large mapReduce operations in a working replica set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4364&quot;&gt;&lt;del&gt;SERVER-4364&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Basically, it&apos;s tough to run a large and/or intense M/R job on the PRIMARY of a replica set that has any other duties to perform.  In these situations, it would be nice to be able to (a) do the work on a SECONDARY, and then (b) have a good place to write the output, such that neither (a) nor (b) bogs down the PRIMARY or the replica set as a whole.  That&apos;s the high-level motivation I think.&lt;/p&gt;</comment>
                            <comment id="120417" author="azat" created="Thu, 17 May 2012 09:08:59 +0000"  >&lt;p&gt;And also affects version is not only 2.0.1 but 2.1 too&lt;/p&gt;

&lt;p&gt;In what version you planning to implement this feature?&lt;/p&gt;</comment>
                            <comment id="120416" author="azat" created="Thu, 17 May 2012 09:07:53 +0000"  >&lt;p&gt;@eliot, but what if master changed in some step of MR job now, is it break something?&lt;/p&gt;</comment>
                            <comment id="120329" author="eliot" created="Thu, 17 May 2012 01:15:35 +0000"  >&lt;p&gt;We should add an option to output to a different server, and/or the primary of a set.&lt;/p&gt;</comment>
                            <comment id="120185" author="azat" created="Wed, 16 May 2012 19:48:11 +0000"  >&lt;p&gt;Why it is not possible to implement write output to master directly?&lt;/p&gt;

&lt;p&gt;Because what if we have output from 120 million of rows&lt;br/&gt;
We must save first to &quot;local&quot; db, than copy from it to master (if this issue fixed)&lt;/p&gt;

&lt;p&gt;And, also what would be if master changed on some step of MR job?&lt;/p&gt;</comment>
                            <comment id="79468" author="cwestin" created="Thu, 12 Jan 2012 22:42:05 +0000"  >&lt;p&gt;Apparently, this worked in the past, but has become broken.&lt;/p&gt;

&lt;p&gt;Note the training course materials also say this works, in the Replica Sets section.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="24818">SERVER-4265</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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25125"><![CDATA[Query Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000obtzFQAQ]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 12 Jan 2012 22:42:05 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 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_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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 5 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>azat</customfieldvalue>
            <customfieldvalue>backlog-query-execution</customfieldvalue>
            <customfieldvalue>cwestin</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>esha.bhargava@mongodb.com</customfieldvalue>
            <customfieldvalue>mark@digitalbrandmine.com</customfieldvalue>
            <customfieldvalue>dampier</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroltb:</customfieldvalue>

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

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

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