<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:37:14 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>[COMPASS-4715] &apos;prepareTransaction&apos; is not supported for replica sets with arbiters</title>
                <link>https://jira.mongodb.org/browse/COMPASS-4715</link>
                <project id="13182" key="COMPASS">Compass </project>
                    <description>&lt;h3&gt;&lt;a name=&quot;ProblemDescription&quot;&gt;&lt;/a&gt;Problem Description&lt;/h3&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/305015/305015_image-2021-03-16-19-13-49-788.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;1%29Wehave2shardsandeachshardhavePSAarchitectureinMongoDB4.2.3Community%2Cwhileupdatingshardkeyfromthecompass%2Ccompassisthrowingthiserror.&quot;&gt;&lt;/a&gt;1) We have 2 shards and each shard have PSA architecture in MongoDB 4.2.3 Community, while updating shard key from the compass, compass is throwing this error.&lt;/h3&gt;
&lt;p&gt;My connection String parameters&#160; &amp;amp;w=1&amp;amp;readConcernLevel=linearizable&amp;amp;readPreference=primary&amp;amp;appname=MongoDB%20Compass&amp;amp;retryWrites=true&amp;amp;directConnection=false&amp;amp;ssl=false&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;2%29Whileupdatingotherfielditisshowing%22&quot;&gt;&lt;/a&gt;2) While updating other field it is showing &quot;&lt;/h3&gt;
&lt;p&gt;Query for sharded findAndModify must contain the shard key&lt;br/&gt;
&#160;&quot; this error&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;%21image20210316191832520.png%21&quot;&gt;&lt;/a&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/305014/305014_image-2021-03-16-19-18-32-520.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;&lt;a name=&quot;StepstoReproduce&quot;&gt;&lt;/a&gt;Steps to Reproduce&lt;/h3&gt;
&lt;h3&gt;&lt;a name=&quot;ExpectedResults&quot;&gt;&lt;/a&gt;Expected Results&lt;/h3&gt;
&lt;h3&gt;&lt;a name=&quot;ActualResults&quot;&gt;&lt;/a&gt;Actual Results&lt;/h3&gt;
&lt;h3&gt;&lt;a name=&quot;AdditionalNotes&quot;&gt;&lt;/a&gt;Additional Notes&lt;/h3&gt;</description>
                <environment>MongoDB 4.2.3 Community&lt;br/&gt;
All Installed in Ubuntu 18 LTS&lt;br/&gt;
2Shards, each shard have PSA nodes&lt;br/&gt;
One mongos router</environment>
        <key id="1649908">COMPASS-4715</key>
            <summary>&apos;prepareTransaction&apos; is not supported for replica sets with arbiters</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kaushik.phpcoder@gmail.com">Kaushik Das</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Mar 2021 13:51:47 +0000</created>
                <updated>Fri, 27 Oct 2023 13:07:38 +0000</updated>
                            <resolved>Wed, 8 Feb 2023 15:21:41 +0000</resolved>
                                    <version>1.26.0</version>
                                    <fixVersion>No version</fixVersion>
                                    <component>Compass</component>
                    <component>CRUD</component>
                        <due></due>
                            <votes>1</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="5178825" author="maurizio.casimirri" created="Wed, 8 Feb 2023 15:21:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaushik.phpcoder%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;kaushik.phpcoder@gmail.com&quot;&gt;kaushik.phpcoder@gmail.com&lt;/a&gt; transactions have a known limitation with shards and PSAs. Transactions whose write operations span multiple shards will error and abort if any transaction operation reads from or writes to a shard that contains an arbiter: &lt;a href=&quot;https://www.mongodb.com/docs/manual/core/transactions-sharded-clusters/#multiple-shards&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/core/transactions-sharded-clusters/#multiple-shards&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;m going to close this as &quot;Work as designed&quot; as it is not a Compass issue. Feel free to open a SERVER ticket in the future if you have similar issues.&lt;/p&gt;</comment>
                            <comment id="5025420" author="JIRAUSER1256529" created="Fri, 2 Dec 2022 15:24:57 +0000"  >&lt;p&gt;Confirmed that:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The first issue still persists (including with 6.2.0-alpha server versions).&lt;/li&gt;
	&lt;li&gt;The second issue has been addressed in &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4478&quot; title=&quot;Support for updates in sharded collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4478&quot;&gt;&lt;del&gt;COMPASS-4478&lt;/del&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Practically speaking though, it seems like there is nothing that Compass could do about the first issue here.&lt;/p&gt;</comment>
                            <comment id="4526898" author="jessica.sigafoos" created="Wed, 4 May 2022 20:24:39 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaushik.phpcoder%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;kaushik.phpcoder@gmail.com&quot;&gt;kaushik.phpcoder@gmail.com&lt;/a&gt;, following up on this.&#160; Are you still seeing this issue with the latest version of Compass?&#160; We believe the second issue was resolved by &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4478&quot; title=&quot;Support for updates in sharded collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4478&quot;&gt;&lt;del&gt;COMPASS-4478&lt;/del&gt;&lt;/a&gt;, and are wondering if you&apos;re still seeing the first issue.  Thanks!&lt;/p&gt;</comment>
                            <comment id="4465512" author="jessica.sigafoos" created="Thu, 7 Apr 2022 19:03:45 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaushik.phpcoder%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;kaushik.phpcoder@gmail.com&quot;&gt;kaushik.phpcoder@gmail.com&lt;/a&gt;, are you still seeing this issue with the latest version of Compass?  Thanks!&lt;/p&gt;</comment>
                            <comment id="4429648" author="jessica.sigafoos" created="Wed, 23 Mar 2022 15:01:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaushik.phpcoder%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;kaushik.phpcoder@gmail.com&quot;&gt;kaushik.phpcoder@gmail.com&lt;/a&gt; are you still seeing this issue with the latest version of Compass?&#160; Thanks!&lt;/p&gt;</comment>
                            <comment id="3690561" author="kaushik.phpcoder@gmail.com" created="Tue, 30 Mar 2021 06:11:52 +0000"  >&lt;p&gt;for 1st case Same error is coming while doing the update on shell.&lt;br/&gt;
But not in 2nd case.&lt;/p&gt;</comment>
                            <comment id="3681556" author="massimiliano.marcon" created="Wed, 24 Mar 2021 14:59:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaushik.phpcoder%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;kaushik.phpcoder@gmail.com&quot;&gt;kaushik.phpcoder@gmail.com&lt;/a&gt;&lt;br/&gt;
For both 1 and 2, are you able to do the same update operation from the shell?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2000302">SERVER-64462</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1528058">COMPASS-4478</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="305015" name="image-2021-03-16-19-13-49-788.png" size="17328" author="kaushik.phpcoder@gmail.com" created="Tue, 16 Mar 2021 13:43:52 +0000"/>
                            <attachment id="305014" name="image-2021-03-16-19-18-32-520.png" size="12358" author="kaushik.phpcoder@gmail.com" created="Tue, 16 Mar 2021 13:48:34 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 24 Mar 2021 14:59:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year 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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>anna.henningsen@mongodb.com</customfieldvalue>
            <customfieldvalue>jessica.sigafoos@mongodb.com</customfieldvalue>
            <customfieldvalue>kaushik.phpcoder@gmail.com</customfieldvalue>
            <customfieldvalue>massimiliano.marcon@mongodb.com</customfieldvalue>
            <customfieldvalue>maurizio.casimirri@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hyzn93:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyk4ef:</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>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_14261" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 15 Mar 2021 00:00:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_17952" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>UserVoice Links</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Error&lt;/p&gt;

&lt;p&gt;1)&#160;Update operation was converted into a distributed transaction because the document being updated would move shards and that transaction failed. :: caused by :: from shard shard one :: caused by :: &apos;prepareTransaction&apos; is not supported for replica sets with arbiters&lt;br/&gt;
2)Query for sharded findAndModify must contain the shard key&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;connection string in compass :&#160;&amp;amp;w=1&amp;amp;readConcernLevel=linearizable&amp;amp;readPreference=primary&amp;amp;appname=MongoDB%20Compass&amp;amp;retryWrites=true&amp;amp;directConnection=false&amp;amp;ssl=false&lt;br/&gt;
&#160;&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hyz9i7:</customfieldvalue>

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