<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:23:22 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-10518] repl writer worker can&apos;t have undefined in a query expression</title>
                <link>https://jira.mongodb.org/browse/SERVER-10518</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDB secondaries crash if master succeeds to add a document with _id set to undefined.&lt;/p&gt;

&lt;p&gt;Document is : &lt;/p&gt;
{ _id: undefined, migrated: new Date(1376502667931) }
&lt;p&gt;Master successfull adds this document, writes it to the oplog.&lt;br/&gt;
All secondaries try to read oplog and fail everytime (restart).&lt;/p&gt;

&lt;p&gt;See attachment for error output.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04.1 LTS Linux 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux</environment>
        <key id="86037">SERVER-10518</key>
            <summary>repl writer worker can&apos;t have undefined in a query expression</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="matt.dannenberg">Matt Dannenberg</assignee>
                                    <reporter username="steffen">Steffen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Aug 2013 08:41:31 +0000</created>
                <updated>Mon, 11 Jul 2016 17:38:18 +0000</updated>
                            <resolved>Mon, 26 Aug 2013 21:37:01 +0000</resolved>
                                    <version>2.4.3</version>
                                    <fixVersion>2.5.3</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="634006" author="zerodivisi0n" created="Wed, 25 Jun 2014 18:24:31 +0000"  >&lt;p&gt;Perhaps it makes sense to skip oplog operations with _id undefined in repl writer to avoid secondaries crash?&lt;/p&gt;</comment>
                            <comment id="633981" author="zerodivisi0n" created="Wed, 25 Jun 2014 18:05:25 +0000"  >&lt;p&gt;Removing such document if it already exists also cause secondaries to crash with same error on latest server version (mongodb 2.6.3).&lt;/p&gt;</comment>
                            <comment id="432745" author="auto" created="Sat, 28 Sep 2013 02:29:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;scotthernandez&apos;, u&apos;name&apos;: u&apos;Scott Hernandez&apos;, u&apos;email&apos;: u&apos;scotthernandez@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10518&quot; title=&quot;repl writer worker can&amp;#39;t have undefined in a query expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10518&quot;&gt;&lt;del&gt;SERVER-10518&lt;/del&gt;&lt;/a&gt;: disallow _id field arrays and undefined&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/68b9892772fc012dc4d15bef8deb19bc2af8cdaf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/68b9892772fc012dc4d15bef8deb19bc2af8cdaf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="413332" author="auto" created="Wed, 28 Aug 2013 17:35:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dannenberg&apos;, u&apos;name&apos;: u&apos;matt dannenberg&apos;, u&apos;email&apos;: u&apos;matt.dannenberg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10518&quot; title=&quot;repl writer worker can&amp;#39;t have undefined in a query expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10518&quot;&gt;&lt;del&gt;SERVER-10518&lt;/del&gt;&lt;/a&gt; adding test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/04fce192cd8a768209ed8b59ae409de0aa786b6b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/04fce192cd8a768209ed8b59ae409de0aa786b6b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="411792" author="mattd@10gen.com" created="Mon, 26 Aug 2013 21:37:01 +0000"  >&lt;p&gt;Turns out the capped collections issue isn&apos;t an issue and the test I saw fail was already failing.&lt;/p&gt;

&lt;p&gt;inb4, triple revert&lt;/p&gt;</comment>
                            <comment id="411791" author="auto" created="Mon, 26 Aug 2013 21:34:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dannenberg&apos;, u&apos;name&apos;: u&apos;matt dannenberg&apos;, u&apos;email&apos;: u&apos;matt.dannenberg@10gen.com&apos;}
&lt;p&gt;Message: reapply &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10518&quot; title=&quot;repl writer worker can&amp;#39;t have undefined in a query expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10518&quot;&gt;&lt;del&gt;SERVER-10518&lt;/del&gt;&lt;/a&gt; do not allow storage of objects with an undefined _id&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit d0502e5bd74203d50ce5b4c8341de3ed01c6c508.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/36f80f77a3370d858ac203035da8e4c29039f1b4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/36f80f77a3370d858ac203035da8e4c29039f1b4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="411771" author="mattd@10gen.com" created="Mon, 26 Aug 2013 21:09:37 +0000"  >&lt;p&gt;_id: undefined is the case in capped collections, hence the revert and reopening of this issue&lt;/p&gt;</comment>
                            <comment id="411755" author="auto" created="Mon, 26 Aug 2013 20:53:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dannenberg&apos;, u&apos;name&apos;: u&apos;matt dannenberg&apos;, u&apos;email&apos;: u&apos;matt.dannenberg@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10518&quot; title=&quot;repl writer worker can&amp;#39;t have undefined in a query expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10518&quot;&gt;&lt;del&gt;SERVER-10518&lt;/del&gt;&lt;/a&gt; do not allow storage of objects with an undefined _id&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 27c3e7ede4c8d0e8b7e29ad46d010a276eb0aec6.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d0502e5bd74203d50ce5b4c8341de3ed01c6c508&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d0502e5bd74203d50ce5b4c8341de3ed01c6c508&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="411751" author="auto" created="Mon, 26 Aug 2013 20:47:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dannenberg&apos;, u&apos;name&apos;: u&apos;matt dannenberg&apos;, u&apos;email&apos;: u&apos;matt.dannenberg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10518&quot; title=&quot;repl writer worker can&amp;#39;t have undefined in a query expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10518&quot;&gt;&lt;del&gt;SERVER-10518&lt;/del&gt;&lt;/a&gt; do not allow storage of objects with an undefined _id&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/27c3e7ede4c8d0e8b7e29ad46d010a276eb0aec6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/27c3e7ede4c8d0e8b7e29ad46d010a276eb0aec6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="408219" author="mattd@10gen.com" created="Wed, 21 Aug 2013 15:28:48 +0000"  >&lt;p&gt;Great. Glad to hear it. Sorry for the trouble.&lt;/p&gt;</comment>
                            <comment id="407996" author="steffen" created="Wed, 21 Aug 2013 08:30:22 +0000"  >&lt;p&gt;We did a full resync of the secondaries.&lt;/p&gt;</comment>
                            <comment id="404631" author="mattd@10gen.com" created="Fri, 16 Aug 2013 14:39:24 +0000"  >&lt;p&gt;We shouldn&apos;t be allowing the storage of any documents with an undefined _id. I have a fix for this in the works, it is scheduled to be in the 2.6 release.&lt;/p&gt;

&lt;p&gt;In the meantime, you can resync your secondaries from the primary either from scratch or using a copy of the primary&apos;s data files. Details are available on our &lt;a href=&quot;http://docs.mongodb.org/manual/tutorial/resync-replica-set-member/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Resync a Member of a Replica Set&lt;/a&gt; page.&lt;/p&gt;</comment>
                            <comment id="404554" author="steffen" created="Fri, 16 Aug 2013 12:29:00 +0000"  >&lt;p&gt;MongoDB Version 2.4.3&lt;br/&gt;
Replicaset with 3 Nodes (1 hidden) and 1 arbiter.&lt;/p&gt;</comment>
                            <comment id="403778" author="steffen" created="Thu, 15 Aug 2013 14:10:39 +0000"  >&lt;p&gt;We are doing a migration with javascript code running in the mongo shell.&lt;/p&gt;

&lt;p&gt;Task: Copy a field value into _id.&lt;br/&gt;
Goal: remove this field and use _id instead.&lt;/p&gt;

&lt;p&gt;We have a document with a field &apos;targetID : String&apos;. This document get&apos;s removed and saved again with _id replaced by this string.&lt;br/&gt;
There was no check for empty or null. That&apos;s why it added this &apos;empty&apos; document.&lt;/p&gt;</comment>
                            <comment id="403764" author="mattd@10gen.com" created="Thu, 15 Aug 2013 13:58:08 +0000"  >&lt;p&gt;I can&apos;t reproduce this. How did you get the document with _id:undefined into the database? What driver and version of mongod were you using?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="89777">DOCS-1922</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="29944" name="Mongo_error.log" size="1941" author="steffen" created="Thu, 15 Aug 2013 08:41:31 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 15 Aug 2013 13:58:08 +0000</customfieldvalue>

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

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

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

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