<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:12 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-6615] Missing Aggregration Framework after upgrade from 2.0.4 --&gt; 2.2.0 RC0</title>
                <link>https://jira.mongodb.org/browse/SERVER-6615</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;When I upgrade from 2.0.4 --&amp;gt; 2.2.0 rc0  using the upgrade instruction via . &lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/2.2/#upgrading&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/release-notes/2.2/#upgrading&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I notice that the aggregate function isn&apos;t working but when I startup the port and point to a new path,  it does.&lt;/p&gt;


&lt;p&gt;PRIMARY&amp;gt; db.serverStatus()&lt;br/&gt;
{&lt;br/&gt;
        &quot;host&quot; : &quot;db1&quot;,&lt;br/&gt;
        &quot;version&quot; : &quot;2.2.0-rc0&quot;,&lt;br/&gt;
        &quot;process&quot; : &quot;mongod&quot;,&lt;/p&gt;

&lt;p&gt;PRIMARY&amp;gt; db.c1.aggregate({$sort : { assetId : -1 , status : -1 }});&lt;br/&gt;
Thu Jul 26 14:51:45 TypeError: db.Content.aggregate is not a function (shell):1&lt;/p&gt;</description>
                <environment>EL5x64</environment>
        <key id="45545">SERVER-6615</key>
            <summary>Missing Aggregration Framework after upgrade from 2.0.4 --&gt; 2.2.0 RC0</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="jason.chuong@cbsi.com">Jason Chuong</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Jul 2012 22:50:07 +0000</created>
                <updated>Mon, 11 Jul 2016 17:57:49 +0000</updated>
                            <resolved>Tue, 28 Aug 2012 17:52:27 +0000</resolved>
                                    <version>2.2.0-rc0</version>
                                                    <component>Aggregation Framework</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="157613" author="jason.chuong@cbsi.com" created="Tue, 28 Aug 2012 17:43:25 +0000"  >&lt;p&gt;Hi Mathias,  &lt;/p&gt;

&lt;p&gt;I upgraded to 2.2.0 rc1 last week and that seems to fix the problem.   thanks&lt;/p&gt;</comment>
                            <comment id="157603" author="redbeard0531" created="Tue, 28 Aug 2012 17:27:08 +0000"  >&lt;p&gt;Please retry with a shell and a mongod from the latest rc. Before running an aggregation, please run version() and db.version() from the same shell. If you still have an issue, please include the output of those two functions.&lt;/p&gt;</comment>
                            <comment id="149183" author="jason.chuong@cbsi.com" created="Tue, 31 Jul 2012 20:29:10 +0000"  >&lt;p&gt;Hi Ian,&lt;/p&gt;

&lt;p&gt;I followed the instruction via &lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/2.2/#upgrading&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/release-notes/2.2/#upgrading&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upgrade the secondary members of the set one at a time by shutting down the mongod and replacing the binary with the 2.2 binary.&lt;br/&gt;
Use the rs.stepDown() to step down the primary to allow normal failover procedure.&lt;br/&gt;
rs.stepDown() and replSetStepDown provide for shorter and more consistent failover procedures than simply shutting down the primary directly.&lt;/p&gt;

&lt;p&gt;When the primary has stepped down, shut the instance down and upgrade by replacing the mongod binary with the 2.2 binary.&lt;/p&gt;</comment>
                            <comment id="149177" author="ian@10gen.com" created="Tue, 31 Jul 2012 20:09:15 +0000"  >&lt;p&gt;@jason, just following up to see if you could provide the repeatable steps for getting this to fail?&lt;/p&gt;</comment>
                            <comment id="148217" author="dan@10gen.com" created="Fri, 27 Jul 2012 18:41:00 +0000"  >&lt;p&gt;It makes sense that aggregate works using the steps you detail above.  &lt;br/&gt;
Can you explain/show what steps (and which versions are being used) you take such that aggregate does not work?&lt;/p&gt;</comment>
                            <comment id="147983" author="jason.chuong@cbsi.com" created="Fri, 27 Jul 2012 05:36:27 +0000"  >&lt;p&gt;Yes,  from my last comment &lt;/p&gt;

&lt;p&gt;When I restart the port and point to a brand new data path .ie  ./bin/mongod --dbpath=/var/tmp/data,  then aggregrate function works.&lt;/p&gt;


&lt;p&gt;This is how I login to the mongo console ( note the shell version # )&lt;br/&gt;
./bin/mongo&lt;br/&gt;
MongoDB shell version: 2.2.0-rc0&lt;br/&gt;
connecting to: 127.0.0.1:9000/test&lt;/p&gt;</comment>
                            <comment id="147980" author="dan@10gen.com" created="Fri, 27 Jul 2012 05:21:37 +0000"  >&lt;p&gt;The error you are getting happens when you are using a 2.0 version of the shell because the function is not defined.  &lt;/p&gt;

&lt;p&gt;Are you still having issues?  I don&apos;t know what you mean by &quot;when i point to a new dbpath&quot;&lt;/p&gt;</comment>
                            <comment id="147882" author="jason.chuong@cbsi.com" created="Thu, 26 Jul 2012 22:57:45 +0000"  >&lt;p&gt;Yes I am via&lt;/p&gt;

&lt;p&gt;Note: the function works when i point to a new dbpath.  &lt;/p&gt;

&lt;p&gt;./bin/mongo --version&lt;br/&gt;
MongoDB shell version: 2.2.0-rc0&lt;/p&gt;</comment>
                            <comment id="147879" author="eliot" created="Thu, 26 Jul 2012 22:53:05 +0000"  >&lt;p&gt;That is a shell helper.&lt;br/&gt;
Are you using the shell from 2.2.0-rc0?&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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 26 Jul 2012 22:53:05 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 25 weeks, 1 day 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>
                            11 years, 25 weeks, 1 day 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>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>ian@mongodb.com</customfieldvalue>
            <customfieldvalue>jason.chuong@cbsi.com</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrntrr:</customfieldvalue>

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

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

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