<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:06 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-3108] namespace too long for temporary collections in Map Reduce</title>
                <link>https://jira.mongodb.org/browse/SERVER-3108</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;http://groups.google.com/group/mongodb-user/browse_thread/thread/09c50faebe52831c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/browse_thread/thread/09c50faebe52831c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I run mapreduce with output type merge on a collection, it&lt;br/&gt;
creates temporary collection named as a concatenation of the source&lt;br/&gt;
collection and result collection  i.e. heres a line in teh verbose&lt;br/&gt;
server output showing the temp collection being removed&lt;/p&gt;

&lt;p&gt;Wed May 11 20:31:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn7&amp;#93;&lt;/span&gt; CMD: drop Events.tmp.mr.battlefield-&lt;br/&gt;
assault-pc.login_battlefield-assault-pc.login.region_0&lt;/p&gt;

&lt;p&gt;(my source collection name is: battlefield-assault-pc.login&lt;br/&gt;
the output collection name: battlefield-assault-pc.login.region)&lt;/p&gt;

&lt;p&gt;Would it be possible to either increase the max namespace length, or&lt;br/&gt;
to modify the temporary named tables to something less verbose? (since&lt;br/&gt;
I read we only have max ~128 chars in a namespace to work with, this&lt;br/&gt;
would mean we really only have less than half of that if we intend to&lt;br/&gt;
use mapreduce)&lt;br/&gt;
Also the postfix &quot;_0&quot; is an ever increasing index showing the version&lt;br/&gt;
of the merge.  Since I run this mapreduce every 3 minutes it will&lt;br/&gt;
eventually consume more and more characters as well.. may want to&lt;br/&gt;
represent this as hex value instead?&lt;/p&gt;

&lt;p&gt;I&apos;ve renamed my collections to the above so with the concated temp&lt;br/&gt;
collections only using about 80 chars, however the problem now is when&lt;br/&gt;
deleting the temporary collection it asserts when trying to drop one&lt;br/&gt;
of its longer indices (gives the following error):&lt;/p&gt;

&lt;p&gt;Wed May 11 20:31:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn7&amp;#93;&lt;/span&gt; dropCollection: Events.tmp.mr.battlefield-&lt;br/&gt;
assault-pc.login_battlefield-assault-pc.login.region_0&lt;br/&gt;
Wed May 11 20:31:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn7&amp;#93;&lt;/span&gt;   d-&amp;gt;nIndexes was 3&lt;br/&gt;
Assertion: 10348:$extra: ns name too long&lt;/p&gt;

&lt;p&gt;The index giving me trouble is:&lt;br/&gt;
        {&lt;br/&gt;
                &quot;name&quot; : &quot;&lt;em&gt;id.time_1&lt;/em&gt;&lt;em&gt;id.region_1&lt;/em&gt;_id.countryCode_1&quot;,&lt;br/&gt;
                &quot;ns&quot; : &quot;Events.battlefield-assault-pc.login.region&quot;,&lt;br/&gt;
                &quot;key&quot; : &lt;/p&gt;
{
                        &quot;_id.time&quot; : 1,
                        &quot;_id.region&quot; : 1,
                        &quot;_id.countryCode&quot; : 1
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;v&quot; : 0&lt;br/&gt;
        }&lt;/p&gt;

&lt;p&gt;I&apos;m assuming the drop() is failing cause the concatenation of the ns&lt;br/&gt;
and index name is greater than the ~128 character ns max length?&lt;/p&gt;

&lt;p&gt;here&apos;s my build info:&lt;br/&gt;
Wed May 11 20:38:58 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=28845&lt;br/&gt;
port=27017 dbpath=/data/db/ 64-bit&lt;br/&gt;
Wed May 11 20:38:58 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v1.8.1, pdfile version&lt;br/&gt;
4.5&lt;br/&gt;
Wed May 11 20:38:58 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version:&lt;br/&gt;
a429cd4f535b2499cc4130b06ff7c26f41c00f04&lt;br/&gt;
Wed May 11 20:38:58 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build sys info: Linux bs-&lt;br/&gt;
linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28&lt;br/&gt;
EST 2009 x86_64 BOOST_LIB_VERSION=1_41 &lt;/p&gt;</description>
                <environment></environment>
        <key id="17147">SERVER-3108</key>
            <summary>namespace too long for temporary collections in Map 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="antoine">Antoine Girbal</assignee>
                                    <reporter username="antoine">Antoine Girbal</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 May 2011 20:45:01 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:38 +0000</updated>
                            <resolved>Mon, 27 Jun 2011 21:12:57 +0000</resolved>
                                                    <fixVersion>1.9.1</fixVersion>
                                    <component>MapReduce</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="39436" author="antoine" created="Mon, 27 Jun 2011 21:12:57 +0000"  >&lt;p&gt;removed the target collection part in the temp collection name.&lt;br/&gt;
It is now &quot;tmp.mr.&quot; + srcCollection + &quot;_&quot; + increment&lt;/p&gt;</comment>
                            <comment id="39435" author="auto" created="Mon, 27 Jun 2011 21:11:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3108&quot; title=&quot;namespace too long for temporary collections in Map Reduce&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3108&quot;&gt;&lt;del&gt;SERVER-3108&lt;/del&gt;&lt;/a&gt;: namespace too long for temporary collections in Map Reduce&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4fdb96d39226408e8e841a01d5534a432f7ea567&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4fdb96d39226408e8e841a01d5534a432f7ea567&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 27 Jun 2011 21:11:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 34 weeks, 2 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>
                            12 years, 34 weeks, 2 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>antoine</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroznj:</customfieldvalue>

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

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

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