<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:40 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>[JAVA-606] MapReduce Fails when specifying a collection name</title>
                <link>https://jira.mongodb.org/browse/JAVA-606</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Due to the new &quot;obeyReadPreference&quot; code, any mapReduce which tries to use a straight forward collection name for output fails.&lt;/p&gt;

&lt;p&gt;The code is hardwired to cast &quot;out&quot; to a DBObject, which is counter to the docs/behavior of MongoDB.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="45096">JAVA-606</key>
            <summary>MapReduce Fails when specifying a collection name</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="brendan">Brendan W. McAdams</assignee>
                                    <reporter username="brendan">Brendan W. McAdams</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Jul 2012 13:36:13 +0000</created>
                <updated>Wed, 29 Aug 2012 20:08:04 +0000</updated>
                            <resolved>Mon, 23 Jul 2012 15:24:25 +0000</resolved>
                                                    <fixVersion>2.9.0</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="158210" author="jeff.yemin" created="Wed, 29 Aug 2012 20:08:04 +0000"  >&lt;p&gt;Closing as part of 2.9.0 release process.&lt;/p&gt;</comment>
                            <comment id="146090" author="auto" created="Mon, 23 Jul 2012 15:07:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-23T08:06:57-07:00&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-606&quot; title=&quot;MapReduce Fails when specifying a collection name&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-606&quot;&gt;&lt;del&gt;JAVA-606&lt;/del&gt;&lt;/a&gt;: Added a test.  Made check for inline a bit more lax.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/8a6a4b1442893f48cea724204f6141be424c646c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/8a6a4b1442893f48cea724204f6141be424c646c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="146089" author="jeff.yemin" created="Mon, 23 Jul 2012 15:06:14 +0000"  >&lt;p&gt;First part of fix: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/5af9606ee95e191f7f244033881f165b982adadb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/5af9606ee95e191f7f244033881f165b982adadb&lt;/a&gt;.  &lt;/p&gt;</comment>
                            <comment id="146081" author="brendan" created="Mon, 23 Jul 2012 14:47:45 +0000"  >&lt;p&gt;RawMapReduce in the Scala driver can reproduce all of these issues.&lt;/p&gt;</comment>
                            <comment id="146076" author="brendan" created="Mon, 23 Jul 2012 14:41:22 +0000"  >&lt;p&gt;For now, I am rewriting parts of the Scala driver to work around this as it is easier but it will likely break customer code.  I advise we fix it.&lt;/p&gt;</comment>
                            <comment id="146075" author="brendan" created="Mon, 23 Jul 2012 14:40:53 +0000"  >&lt;p&gt;Further, verbose is acceptable as both an int and a boolean.&lt;/p&gt;

&lt;p&gt;We are hard casting to an int which means any code that sets it as a boolean (valid in the MongoDB Server) breaks.&lt;/p&gt;

&lt;p&gt;The obeyReadPreference code is causing serious breakage because of this in the Scala driver, and probably in other third party drivers as well.&lt;/p&gt;</comment>
                            <comment id="146060" author="jeff.yemin" created="Mon, 23 Jul 2012 14:30:05 +0000"  >&lt;p&gt;Note that this bug was introduced by the fix to &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-497&quot; title=&quot;ReadPrefs ignored for commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-497&quot;&gt;&lt;del&gt;JAVA-497&lt;/del&gt;&lt;/a&gt;, and does not appear in any release.&lt;/p&gt;</comment>
                            <comment id="146043" author="brendan" created="Mon, 23 Jul 2012 14:09:21 +0000"  >&lt;p&gt;This occurs only when you construct a standalone DBObject command and invoke &apos;command&apos;.  The MapReduceCommand and mapReduce functions filter out any problem.&lt;/p&gt;

&lt;p&gt;However, the docs/specs do allow &quot;out&quot; to contain a string with a collection name, and we should not have a DBObject class check.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="27136">JAVA-497</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrghk7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9783</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>