<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:17:53 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-8605] Oplog contains missing information ?</title>
                <link>https://jira.mongodb.org/browse/SERVER-8605</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Question about the opLog for mongodb.&lt;/p&gt;

&lt;p&gt;I am using oplog to trigger events based on the database updates.&lt;br/&gt;
note: I am reading opLog from node.js, so i&apos;m not sure if this is a node driver issue or just a standard opLog issue.&lt;/p&gt;

&lt;p&gt;If you try:&lt;/p&gt;

&lt;p&gt;db.notes.insert(&lt;/p&gt;
{status:&apos;new&apos;,subject:&apos;subject 1&apos;}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;db.notes.update({_id: ObjectId(&quot;512231109946135b79af6bec&quot;)},&lt;/p&gt;
{status:&apos;pending&apos;,subject:&apos;subject 2&apos;}
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;//We expect that both fields are shown in oplog (CORRECT)&lt;br/&gt;
oplog ..&lt;br/&gt;
{ ts: &lt;/p&gt;
{ _bsontype: &apos;Timestamp&apos;, low_: 1, high_: 1361195351 }
&lt;p&gt;,&lt;br/&gt;
  ns: &apos;spotmasterNotes.notes&apos;,&lt;br/&gt;
  o2: &lt;/p&gt;
{ _id: 512231109946135b79af6bec }
&lt;p&gt;,&lt;br/&gt;
  op: &apos;u&apos;,&lt;br/&gt;
  h: &lt;/p&gt;
{ _bsontype: &apos;Long&apos;, low_: 1743521552, high_: 1346864790 }
&lt;p&gt;,&lt;br/&gt;
  o: &lt;/p&gt;
{ status: &apos;pending&apos;, subject: &apos;subject 2&apos; }
&lt;p&gt;,&lt;br/&gt;
  v: 2 }&lt;/p&gt;

&lt;p&gt;db.notes.update({_id: ObjectId(&quot;512231109946135b79af6bec&quot;)},{$set:{status:&apos;close&apos;,subject:&apos;subject 3&apos;}});&lt;/p&gt;

&lt;p&gt;//We expect that both fields are shown in oplog (WRONG only one shown)&lt;br/&gt;
oplog ..&lt;br/&gt;
{ ts: &lt;/p&gt;
{ _bsontype: &apos;Timestamp&apos;, low_: 1, high_: 1361195394 }
&lt;p&gt;,&lt;br/&gt;
  ns: &apos;spotmasterNotes.notes&apos;,&lt;br/&gt;
  o2: &lt;/p&gt;
{ _id: 512231109946135b79af6bec }
&lt;p&gt;,&lt;br/&gt;
  op: &apos;u&apos;,&lt;br/&gt;
  h: &lt;/p&gt;
{ _bsontype: &apos;Long&apos;, low_: 172060737, high_: -1048766452 }
&lt;p&gt;,&lt;br/&gt;
  o: { &apos;$set&apos;: &lt;/p&gt;
{ subject: &apos;subject 3&apos; }
&lt;p&gt; },&lt;br/&gt;
  v: 2 }&lt;/p&gt;

&lt;p&gt;Any idea why this happens ?&lt;/p&gt;</description>
                <environment></environment>
        <key id="65632">SERVER-8605</key>
            <summary>Oplog contains missing information ?</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kurteknikk">Kurt Agius</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Feb 2013 13:54:30 +0000</created>
                <updated>Fri, 8 Mar 2013 15:55:43 +0000</updated>
                            <resolved>Mon, 18 Feb 2013 14:04:52 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="269285" author="scotthernandez" created="Mon, 18 Feb 2013 15:50:29 +0000"  >&lt;p&gt;While the client will be able to read each field individually (no more duplicate field names at the same level) in the new version, all versions were/are valid as far as replication is concerned (the C++ client deals fine with duplicate fields of the same name at the same level). The meaning and values of any fields is what I&apos;m referring to, not the field names and order &amp;#8211; and this meaning is the part that is internal and may change in future versions.&lt;/p&gt;</comment>
                            <comment id="269263" author="kurteknikk" created="Mon, 18 Feb 2013 15:07:55 +0000"  >&lt;p&gt;Thanks for your quick reply.&lt;/p&gt;

&lt;p&gt;I hope that version 2.4 will be available soon. I can understand that the format is internal, but i think it will become stable, so replication between different versions of master and slave will be possible.&lt;/p&gt;

&lt;p&gt;Of course, i understand that if the format changes, i have to make sure that my logic still works.&lt;/p&gt;

&lt;p&gt;One last (maybe stupid) question... I&apos;m not really sure what you mean by &quot;your client can&apos;t read the changed fields&quot;. Shouldn&apos;t that be &quot;a standard format&quot; that every client can read (assuming it&apos;s latest version) ?&lt;/p&gt;</comment>
                            <comment id="269230" author="scotthernandez" created="Mon, 18 Feb 2013 14:04:52 +0000"  >&lt;p&gt;This is a client issue because of the format on the oplog entries (docs with repeated fields): &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1606&quot; title=&quot;Oplog entries contain repeated fields ($set)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1606&quot;&gt;&lt;del&gt;SERVER-1606&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please upgrade to 2.4.0+ when it is available, or use a fixed client (not sure there is one for node.js), or re-read the whole document since your client can&apos;t read the changed fields.&lt;/p&gt;

&lt;p&gt;Since the oplog entries are idempotent and not a representation of what change you asked for (the result may be more than just the change the client issued) you may want to rethink your use of the oplog information. It provides a general tool for detecting change (it will let you detect the document and where it was updated/inserted/removed) but since the format is internal (and may change in any version) you should be careful how closely you tie your application logic to it. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="12738">SERVER-1606</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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>Mon, 18 Feb 2013 14:04:52 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kurteknikk</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn61b:</customfieldvalue>

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

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

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