<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:50:47 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-19386] insert {_id:Timestamp()} no longer expand</title>
                <link>https://jira.mongodb.org/browse/SERVER-19386</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I use mongo2.2, insert data as follows:&lt;/p&gt;

&lt;p&gt;{_id:Timestamp()}  Timestamp will expand.&lt;/p&gt;

&lt;p&gt;but in mongo2.6 and mongo 3.0, it won&apos;t expand.&lt;br/&gt;
If I upgrade from mongo2.2 to mongo2.6, current system will not work.&lt;/p&gt;

&lt;p&gt;Is there a way to support that?&lt;/p&gt;</description>
                <environment></environment>
        <key id="216686">SERVER-19386</key>
            <summary>insert {_id:Timestamp()} no longer expand</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="wenchaomeng">wenchaomeng</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Jul 2015 09:02:05 +0000</created>
                <updated>Wed, 15 Jul 2015 03:48:34 +0000</updated>
                            <resolved>Tue, 14 Jul 2015 15:33:14 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="966358" author="dan@10gen.com" created="Wed, 15 Jul 2015 03:48:34 +0000"  >&lt;p&gt;There isn&apos;t a perfect workaround for your situation other than changing your code on the client side.  See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12349&quot; title=&quot;Insert from update replaces {_id:Timestamp()} with current date+inc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12349&quot;&gt;&lt;del&gt;SERVER-12349&lt;/del&gt;&lt;/a&gt;, where we specifically removed the expansion of Timestamp for _id.&lt;/p&gt;

&lt;p&gt;Is it possible for you to change your application to set the Timestamp for the _id on the client ?&lt;/p&gt;</comment>
                            <comment id="966318" author="wenchaomeng" created="Wed, 15 Jul 2015 01:44:45 +0000"  >&lt;p&gt;Thanks a lot for your answer!&lt;/p&gt;

&lt;p&gt;There are some issuse I have to consider:&lt;/p&gt;

&lt;p&gt;1&#12289;This has to be supported from mongo2.2 to mongo3.0(Now I am using 2.2, and I want to upgrade  it to 3.0 )&lt;br/&gt;
2&#12289;Current system use it as _id, and consumes the message in sequence(order by id).&lt;br/&gt;
3&#12289;Current system is  a cluser, so I have to upgrade all the system one by one.  In the meantime, it has to work normally durating all the time.&lt;/p&gt;

&lt;p&gt;Do you have any idea about that?&lt;/p&gt;</comment>
                            <comment id="965737" author="samk" created="Tue, 14 Jul 2015 15:33:00 +0000"  >&lt;p&gt;I would encourage you to consider the &lt;tt&gt;Date()&lt;/tt&gt; constructor to generate a date object in the &lt;tt&gt;mongo&lt;/tt&gt; shell javascript client, if that&apos;s what you&apos;re looking for. You can also use the &lt;tt&gt;$currentDate&lt;/tt&gt; &lt;a href=&quot;http://docs.mongodb.org/manual/reference/operator/update/currentDate/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;docs&lt;/a&gt; update operator in 2.6 and later. &lt;/p&gt;

&lt;p&gt;Also see the &lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;release notes section&lt;/a&gt; in the documentation on the new releases for MongoDB, including complete upgrade instructions. &lt;/p&gt;

&lt;p&gt;The SERVER project is for bugs and feature requests related to the core MongoDB database server. Questions like this are probably best suited to the &lt;a href=&quot;http://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-users group&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
sam&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 14 Jul 2015 15:33:00 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 31 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
            <customfieldvalue>wenchaomeng</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl0rj:</customfieldvalue>

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

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

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