<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:44:43 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-3219] Add a reason for ConnectionClosedEvent</title>
                <link>https://jira.mongodb.org/browse/CSHARP-3219</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Previously we didn&apos;t add a reason field into &lt;em&gt;ConnectionClosedEvent&lt;/em&gt; because this event is called from &lt;em&gt;Dispose&lt;/em&gt; method and we didn&apos;t have a way to determine for what reason this method has been called.&lt;/p&gt;

&lt;p&gt;But as we found in the scope of &lt;a href=&quot;https://jira.mongodb.org/browse/HELP-18973&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/HELP-18973&lt;/a&gt;, this value can be helpful for some connectivity investigations.&lt;/p&gt;

&lt;p&gt;Two options which were discussed in the slack:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Add a new &lt;b&gt;Close(&lt;font color=&quot;#1d1c1d&quot;&gt;ConnectionClosedReason &lt;/font&gt;reason)&lt;/b&gt; method which will contain triggering event logic and &lt;em&gt;Dispose&lt;/em&gt; logic. The disadvantage of this way (additionally to having &lt;em&gt;Close&lt;/em&gt; and &lt;em&gt;Dispose&lt;/em&gt; methods for the same class) is that it&apos;s unclear whether &lt;em&gt;Dispose&lt;/em&gt; method should still have triggering events or no. If yes, we still can potentially have the same issue with empty reason field as we have now, if no - then we can have the potential situation without &lt;em&gt;ConnectionClosedEvent&lt;/em&gt; at all.&lt;/li&gt;
	&lt;li&gt;Investigate how this logic works in java. As far as I can see they trigger the &lt;em&gt;ConnectionClosedEvent&lt;/em&gt; before calling &lt;em&gt;stream.Close&lt;/em&gt; (afaik, this is an equivalent of stream.Dispose in c#):&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/91e670f86303121c7afe68145d3ca5d341079506/driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java#L598&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/91e670f86303121c7afe68145d3ca5d341079506/driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java#L598&lt;/a&gt;&#160;&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="1505709">CSHARP-3219</key>
            <summary>Add a reason for ConnectionClosedEvent</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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>Wed, 7 Oct 2020 16:12:48 +0000</created>
                <updated>Mon, 14 Nov 2022 20:20:55 +0000</updated>
                                                                            <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                        <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|hr49z3:</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>