<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:52 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>[CSHARP-2918] Watch method should work even when documents contain duplicate element names</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2918</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;When calling MoveNext() on an IAsyncCursor&amp;lt;ChangeStreamDocument&amp;lt;T&amp;gt;&amp;gt; where the next change in the oplog is for a document that contains a duplicate element MoveNext() throws an InvalidOperationException with the message, &quot;Duplicate element name &apos;&amp;lt;ElementName&amp;gt;&apos;.&quot;&lt;/p&gt;

&lt;p&gt;I can find no way to extract the ID of the document that caused this exception to occur from the change stream and no way to easily find documents with duplicate elements by any other means.&lt;/p&gt;

&lt;p&gt;Obviously you&apos;re not meant to have duplicate elements and we certainly try and keep them out of our data but on the odd occasion that it does slip in it is nearly impossible to find and it cripples our use of the change streams because there&apos;s no way to get the document ID or skip over the offending document.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1118583">CSHARP-2918</key>
            <summary>Watch method should work even when documents contain duplicate element names</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="13201">Fixed</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="chris.wyatt@livinglens.tv">Jessica Wyatt</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Jan 2020 16:51:26 +0000</created>
                <updated>Sat, 28 Oct 2023 11:48:26 +0000</updated>
                            <resolved>Mon, 6 Apr 2020 13:28:34 +0000</resolved>
                                    <version>2.9.1</version>
                                    <fixVersion>2.10.3</fixVersion>
                    <fixVersion>2.11.0</fixVersion>
                                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3027128" author="xgen-internal-githook" created="Mon, 6 Apr 2020 13:27:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2918&quot; title=&quot;Watch method should work even when documents contain duplicate element names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2918&quot;&gt;&lt;del&gt;CSHARP-2918&lt;/del&gt;&lt;/a&gt;: Fix race condition in test.&lt;br/&gt;
Branch: v2.10.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/a03f404e4aeb74f8afae0cf3e8d22d009b90c657&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/a03f404e4aeb74f8afae0cf3e8d22d009b90c657&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3027127" author="xgen-internal-githook" created="Mon, 6 Apr 2020 13:27:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2918&quot; title=&quot;Watch method should work even when documents contain duplicate element names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2918&quot;&gt;&lt;del&gt;CSHARP-2918&lt;/del&gt;&lt;/a&gt;: Watch method should work even when documents contain duplicate element names.&lt;br/&gt;
Branch: v2.10.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/9f972a347f16d3bbcbc42ad881201a8a55e949a0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/9f972a347f16d3bbcbc42ad881201a8a55e949a0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3004146" author="xgen-internal-githook" created="Fri, 27 Mar 2020 14:19:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;name&apos;: &apos;rstam&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2918&quot; title=&quot;Watch method should work even when documents contain duplicate element names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2918&quot;&gt;&lt;del&gt;CSHARP-2918&lt;/del&gt;&lt;/a&gt;: Fix race condition in test.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/b1b5d2cf9eb7773a94f3cab275edd900113e134e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/b1b5d2cf9eb7773a94f3cab275edd900113e134e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2976498" author="xgen-internal-githook" created="Thu, 12 Mar 2020 20:38:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;username&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2918&quot; title=&quot;Watch method should work even when documents contain duplicate element names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2918&quot;&gt;&lt;del&gt;CSHARP-2918&lt;/del&gt;&lt;/a&gt;: Watch method should work even when documents contain duplicate element names.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/39c3cc4f2aec0d0367e0023cdf5e76edee0c4991&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/39c3cc4f2aec0d0367e0023cdf5e76edee0c4991&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2935165" author="rstam" created="Wed, 4 Mar 2020 20:36:54 +0000"  >&lt;p&gt;Thank you for reporting this. I am able to reproduce it with a small test program.&lt;/p&gt;

&lt;p&gt;I will be changing the driver so that the Watch method works even when documents contain duplicate element names.&lt;/p&gt;</comment>
                            <comment id="2909804" author="chris.wyatt@livinglens.tv" created="Wed, 26 Feb 2020 10:33:46 +0000"  >&lt;p&gt;Apologies for the long delay; it&apos;s been a busy few weeks. Here is the requested stack trace:&lt;/p&gt;



&lt;p&gt;System.InvalidOperationException:&lt;br/&gt;
 at MongoDB.Bson.BsonDocument.Add (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.BsonDocument.Add (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.Serializers.BsonDocumentSerializer.DeserializeValue (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.Serializers.BsonValueSerializerBase`1.Deserialize (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.Serializers.BsonValueSerializer.DeserializeValue (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.Serializers.BsonValueSerializerBase`1.Deserialize (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.Serializers.BsonDocumentSerializer.DeserializeValue (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.Serializers.BsonValueSerializerBase`1.Deserialize (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.BsonDocumentBackedClassSerializer`1.DeserializeValue (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.Serializers.ClassSerializerBase`1.Deserialize (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize (MongoDB.Bson, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.ChangeStreamCursor`1.DeserializeDocument (MongoDB.Driver.Core, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.ChangeStreamCursor`1.DeserializeDocuments (MongoDB.Driver.Core, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.ChangeStreamCursor`1.ProcessBatch (MongoDB.Driver.Core, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.ChangeStreamCursor`1.MoveNext (MongoDB.Driver.Core, Version=2.9.1.0, Culture=neutral, PublicKeyToken=null)&lt;/p&gt;</comment>
                            <comment id="2780344" author="chris.wyatt@livinglens.tv" created="Mon, 3 Feb 2020 16:07:06 +0000"  >&lt;p&gt;Hi Esha,&lt;/p&gt;

&lt;p&gt;Thanks for looking into this. I will be able to send a stack trace but unfortunately it&apos;ll be a few weeks until I can as my manager has moved me onto something else for the time being and I&apos;d need to create a&#160;minimal reproducible example as my employer isn&apos;t happy with me uploading a stack trace from our actual code base.&lt;/p&gt;</comment>
                            <comment id="2780270" author="esha.bhargava" created="Mon, 3 Feb 2020 15:38:50 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=chris.wyatt%40livinglens.tv&quot; class=&quot;user-hover&quot; rel=&quot;chris.wyatt@livinglens.tv&quot;&gt;chris.wyatt@livinglens.tv&lt;/a&gt;Can you send us a stack trace?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hw9ss7:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>