<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:47: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>[CSHARP-4290] Incorrect feature version for &quot;AggregateOutOnSecondary&quot;</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4290</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;&quot;&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Summary&lt;/p&gt;

&lt;p&gt;&lt;em&gt;There is&lt;/em&gt;&#160;&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;WireVersion.Server50&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;&#160;&lt;em&gt;in code, but corresponding to documentation feature is available starts from 4.4&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Links:&lt;br/&gt;
&lt;em&gt;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/operator/aggregation/merge/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/reference/operator/aggregation/merge/&lt;/a&gt;&lt;/em&gt;&lt;br/&gt;
_&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/operator/aggregation/out/_&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/reference/operator/aggregation/out/_&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;What should do:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Pass&lt;/em&gt;&#160;&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;WireVersion.Server44&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;&lt;em&gt;for&lt;/em&gt;&#160;&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;__aggregateOutOnSecondary&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="2106376">CSHARP-4290</key>
            <summary>Incorrect feature version for &quot;AggregateOutOnSecondary&quot;</summary>
                <type id="14901" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14700&amp;avatarType=issuetype">Spec Change</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="13203">Gone away</resolution>
                                        <assignee username="james.kovacs@mongodb.com">James Kovacs</assignee>
                                    <reporter username="azeriker@gmail.com">Maks Shapovalov</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Aug 2022 09:14:20 +0000</created>
                <updated>Fri, 27 Oct 2023 19:56:02 +0000</updated>
                            <resolved>Mon, 29 Aug 2022 12:00:40 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4783388" author="dbeng-pm-bot" created="Mon, 29 Aug 2022 12:00:41 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to comment on this if you&apos;re able to provide more information.&lt;/p&gt;</comment>
                            <comment id="4748221" author="james.kovacs" created="Fri, 12 Aug 2022 22:43:13 +0000"  >&lt;p&gt;Hi, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=azeriker%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;azeriker@gmail.com&quot;&gt;azeriker@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We have investigated this issue and it was a conscious design decision for drivers to only support $out on secondaries when running against 5.0 or later clusters. There were nuances with mixed version clusters (which can occur when upgrading large deployments) that made it difficult to support this feature in our drivers on MongoDB 4.4.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#:~:text=For%20pre%2D5.0,the%20CRUD%20spec.&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Server Selection spec&lt;/a&gt; says:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;For pre-5.0 servers, an aggregate command is &quot;must-use-primary&quot; if its&lt;br/&gt;
pipeline contains a write stage (e.g. ``$out``, ``$merge``); otherwise, it&lt;br/&gt;
is &quot;may-use-secondary&quot;. For 5.0+ servers, secondaries can execute an&lt;br/&gt;
aggregate command with a write stage and all aggregate commands are&lt;br/&gt;
&quot;may-use-secondary&quot;. This is discussed in more detail in&lt;br/&gt;
Read preferences and server selection in the CRUD spec.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-823&quot; title=&quot;Support $merge and $out executing on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-823&quot;&gt;DRIVERS-823&lt;/a&gt; / CSHARP-3397 which implements this feature also says:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;As of MongoDB 5.0, drivers can support read preferences (either explicit/per-operation or inherited) for aggregations including an $out/$merge stage. Previously, such pipelines would always require a primary.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;To use $out on secondaries, you have two options currently:&lt;/p&gt;

&lt;p&gt;1. If you are running a 4.4 cluster, you can run $out on secondaries using the &lt;tt&gt;mongo&lt;/tt&gt; shell.&lt;br/&gt;
2. If you are running a 5.0 or later cluster, you can run $out on secondaries using any driver that currently supports this feature. (See &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-823&quot; title=&quot;Support $merge and $out executing on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-823&quot;&gt;DRIVERS-823&lt;/a&gt; for a list of drivers that have implemented this feature.)&lt;/p&gt;

&lt;p&gt;I have filed &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-15540&quot; title=&quot;Drivers require 5.0 cluster to enable $out on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-15540&quot;&gt;&lt;del&gt;DOCS-15540&lt;/del&gt;&lt;/a&gt; to correct our documentation.&lt;/p&gt;

&lt;p&gt;Please let us know if you have any additional questions or concerns.&lt;/p&gt;

&lt;p&gt;Sincerely,&lt;br/&gt;
James&lt;/p&gt;</comment>
                            <comment id="4734848" author="azeriker@gmail.com" created="Mon, 8 Aug 2022 15:11:46 +0000"  >&lt;p&gt;Also u can assign me after approve, I can fix it and create PR&lt;/p&gt;</comment>
                            <comment id="4732205" author="esha.bhargava" created="Fri, 5 Aug 2022 19:48:46 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=azeriker%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;azeriker@gmail.com&quot;&gt;azeriker@gmail.com&lt;/a&gt; Thank you for reporting this issue. We&apos;ll look into it and get back to you soon.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2112872">DOCS-15540</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|i0nug0:</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>