<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:46:57 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-4014] Remove code to run `getLastError` command once minimum supported server is 4.2</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4014</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;In the scope of &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3480&quot; title=&quot;Switch to using maxWireVersion rather than buildInfo to determine feature support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3480&quot;&gt;&lt;del&gt;CSHARP-3480&lt;/del&gt;&lt;/a&gt;, we removed using &quot;buildInfo&quot;, we also can consider removing &quot;getLastError&quot;.&lt;/p&gt;

&lt;p&gt;NOTE: currently, the spec tests don&apos;t expect that we call it that forced us to apply a workaround in UnifiedEventMatcher &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/blob/master/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedEventMatcher.cs#L241&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1963703">CSHARP-4014</key>
            <summary>Remove code to run `getLastError` command once minimum supported server is 4.2</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Jan 2022 21:52:23 +0000</created>
                <updated>Wed, 16 Nov 2022 01:27:01 +0000</updated>
                                                                            <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4299168" author="rstam" created="Tue, 18 Jan 2022 22:43:47 +0000"  >&lt;p&gt;Removing the link to &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3480&quot; title=&quot;Switch to using maxWireVersion rather than buildInfo to determine feature support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3480&quot;&gt;&lt;del&gt;CSHARP-3480&lt;/del&gt;&lt;/a&gt; as this is unrelated.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3480&quot; title=&quot;Switch to using maxWireVersion rather than buildInfo to determine feature support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3480&quot;&gt;&lt;del&gt;CSHARP-3480&lt;/del&gt;&lt;/a&gt; is about using `MaxWireVersion` instead of `ServerVersion` which allows us to stop running the `buildInfo` command, which is the only way to get the server version.&lt;/p&gt;

&lt;p&gt;This ticket is about not running the `getLastError` command which is a different issue.&lt;/p&gt;

&lt;p&gt;While they do have in common that they both are efforts to remove code, they are different scenarios.&lt;/p&gt;</comment>
                            <comment id="4299154" author="rstam" created="Tue, 18 Jan 2022 22:40:05 +0000"  >&lt;p&gt;As background: the reason we used to run the `getLastError` command is to get the `connectionId` value. This is the &lt;b&gt;server&apos;s&lt;/b&gt; `connectionId`. We want to associate the server&apos;s `connectionId` with the client&apos;s connection to make it easier to correlate errors or events that are observed client-side with a corresponding server connection. That information is usually needed to correlate with events in the server log.&lt;/p&gt;

&lt;p&gt;Since at least server version 4.0 the `hello` comand has been including the `connectionId` in the response. When we are able to get the `connectionId` from the `hello` response we do &lt;b&gt;not&lt;/b&gt; run the `getLastError` command.&lt;/p&gt;

&lt;p&gt;So use of this command has essentially gone away by itself due to the `connectionId` field being added to the `hello` response.&lt;/p&gt;

&lt;p&gt;We should leave this ticket open for now so that once 4.0 becomes the minimum supported server version we can physically remove the code that conditionally runs the `getLastError` command.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="87748">SERVER-10637</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hr496n:</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_22279" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Server Compat</customfieldname>
                        <customfieldvalues>
                                        <label>4.1</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>