<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:41: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>[CSHARP-2206] Watch method fails when c# driver upgraded to 2.5 from 2.4</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2206</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Just after upgrading the c# driver to 2.5, my logic where I am using watch method to check for any updates on collection started failing with an error message.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;tt&gt;GetRequestChanges method failed with error : Command aggregate failed: Unrecognized pipeline stage name: &apos;$changeStream&apos;&lt;/tt&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;below is the code: and last line is where code breaks.&lt;br/&gt;
{{var db = ConnectMongoDB();&lt;br/&gt;
                var options = new ChangeStreamOptions &lt;/p&gt;
{ FullDocument = ChangeStreamFullDocumentOption.UpdateLookup }
&lt;p&gt;;&lt;br/&gt;
                var pipeline = new EmptyPipelineDefinition&amp;lt;ChangeStreamDocument&amp;lt;BsonDocument&amp;gt;&amp;gt;().Match(Builders&amp;lt;ChangeStreamDocument&amp;lt;BsonDocument&amp;gt;&amp;gt;.Filter.Empty);&lt;br/&gt;
                var col = db.GetCollection&amp;lt;BsonDocument&amp;gt;(&quot;tblRequest&quot;);&lt;br/&gt;
                var cursor = col.Watch(pipeline, options);}}&lt;/p&gt;

&lt;p&gt;In documentation, I do see the very first point says &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;The 2.5.0 driver adds support for many of the new features introduced by the 3.6.0 server.&lt;/p&gt;

&lt;p&gt;Change streams&lt;br/&gt;
The 2.5.0 driver adds support for change streams. See the Watch and WatchAsync methods in IMongoCollection.&lt;/p&gt;&lt;/blockquote&gt; 
&lt;p&gt;but &lt;a href=&quot;https://docs.mongodb.com/manual/changeStreams/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here &lt;/a&gt; I don&apos;t see anything that suggests any changes.&lt;/p&gt;

&lt;p&gt;Can you suggest what&apos;s wrong here?&lt;/p&gt;</description>
                <environment>Windows 10, Core i3 with 8GB RAM using Visual studio 2015 professional.</environment>
        <key id="507090">CSHARP-2206</key>
            <summary>Watch method fails when c# driver upgraded to 2.5 from 2.4</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="13202">Works as Designed</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="puneets">Puneet Sharma</reporter>
                        <labels>
                            <label>driver</label>
                            <label>question</label>
                    </labels>
                <created>Wed, 7 Mar 2018 15:04:49 +0000</created>
                <updated>Fri, 27 Oct 2023 13:25:02 +0000</updated>
                            <resolved>Wed, 7 Mar 2018 15:23:00 +0000</resolved>
                                    <version>2.5</version>
                                                    <component>API</component>
                    <component>Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1825966" author="rstam" created="Wed, 7 Mar 2018 15:22:22 +0000"  >&lt;p&gt;OK. Thanks for letting me know that.&lt;/p&gt;</comment>
                            <comment id="1825956" author="puneets" created="Wed, 7 Mar 2018 15:19:26 +0000"  >&lt;p&gt;It seems like it was my mistake, my API was configured with a server which was having MongoDB 3.6 and my client-side application was configured with a server having 3.4 MongoDB. Hence the issue.&lt;br/&gt;
I believe you can close this issue.&lt;/p&gt;</comment>
                            <comment id="1825951" author="rstam" created="Wed, 7 Mar 2018 15:16:49 +0000"  >&lt;p&gt;The error message:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Unrecognized pipeline stage name: &apos;$changeStream&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;is being returned from the server.&lt;/p&gt;

&lt;p&gt;The first two things you should look into are:&lt;/p&gt;

&lt;p&gt;1. Is the server version 3.6? (older versions don&apos;t support change streams)&lt;br/&gt;
2. Is the server deployment a replica set or a sharded cluster? (standalone servers don&apos;t support change streams)&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <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|htjbov:</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>