<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:42 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>[CDRIVER-3324] Session not pinned to mongos when not relying on server selection</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3324</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;When providing the &lt;tt&gt;_mongoc_client_command_with_opts&lt;/tt&gt; function with a &lt;tt&gt;server_id&lt;/tt&gt; in &lt;tt&gt;opts&lt;/tt&gt;, &lt;tt&gt;mongoc_cluster_stream_for_server&lt;/tt&gt; is called directly, skipping server selection logic contained in &lt;tt&gt;_mongoc_cluster_select_server_id&lt;/tt&gt;. However, this also bypasses session pinning when using sharded transactions. The pinning should happen regardless of who performs server selection. Fixing this by pinning in &lt;tt&gt;mongoc_cluster_stream_for_server&lt;/tt&gt; instead of during server selection also resolves a similar issue when providing a &lt;tt&gt;server_id&lt;/tt&gt; option to the &lt;tt&gt;mongoc_bulk_operation_execute&lt;/tt&gt; and &lt;tt&gt;_mongoc_cursor_fetch_stream&lt;/tt&gt;&#160;functions.&lt;/p&gt;

&lt;p&gt;The rationale behind this is that the PHP driver performs server selection itself before issuing commands, as it needs to know which server a command ran on for result cursors and write result objects.&lt;/p&gt;</description>
                <environment></environment>
        <key id="900000">CDRIVER-3324</key>
            <summary>Session not pinned to mongos when not relying on server selection</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="clyde.bazile@mongodb.com">Clyde Bazile III</assignee>
                                    <reporter username="andreas.braun@mongodb.com">Andreas Braun</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Aug 2019 14:04:16 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:08 +0000</updated>
                            <resolved>Thu, 22 Aug 2019 20:52:17 +0000</resolved>
                                    <version>1.15.0</version>
                                    <fixVersion>1.15.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2384591" author="xgen-internal-githook" created="Fri, 23 Aug 2019 16:27:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Clyde Bazile&apos;, &apos;email&apos;: &apos;bazileclyde@gmail.com&apos;, &apos;username&apos;: &apos;bazile-clyde&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3324&quot; title=&quot;Session not pinned to mongos when not relying on server selection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3324&quot;&gt;&lt;del&gt;CDRIVER-3324&lt;/del&gt;&lt;/a&gt; Session not pinned when not relying on server selection&lt;br/&gt;
Branch: r1.15&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6f73903ae094694143254b48af469fc59cded0b2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6f73903ae094694143254b48af469fc59cded0b2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2383370" author="xgen-internal-githook" created="Thu, 22 Aug 2019 20:49:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;bazile-clyde&apos;, &apos;email&apos;: &apos;bazileclyde@gmail.com&apos;, &apos;name&apos;: &apos;Clyde Bazile&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3324&quot; title=&quot;Session not pinned to mongos when not relying on server selection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3324&quot;&gt;&lt;del&gt;CDRIVER-3324&lt;/del&gt;&lt;/a&gt; Session not pinned when not relying on server selection&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/505883265e3a78b496a5ce71d9411c07df3db28d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/505883265e3a78b496a5ce71d9411c07df3db28d&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="629372">PHPC-1290</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|hvai4v:</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>