<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:00:44 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>[CXX-905] Strange results of DBClientConnection::isStillConnected()</title>
                <link>https://jira.mongodb.org/browse/CXX-905</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Before connection called it returns &lt;b&gt;true&lt;/b&gt;. It&apos;s a normal behaviour?&lt;br/&gt;
Maybe, I found trouble code at sources:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/dbclientinterface.h#L1802&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/dbclientinterface.h#L1802&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="284624">CXX-905</key>
            <summary>Strange results of DBClientConnection::isStillConnected()</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="4">Incomplete</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="androndo">Andrey Kolkov</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 May 2016 11:18:26 +0000</created>
                <updated>Mon, 9 May 2016 20:15:50 +0000</updated>
                            <resolved>Mon, 9 May 2016 20:15:50 +0000</resolved>
                                    <version>legacy-1.1.0</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1259893" author="acm" created="Mon, 9 May 2016 20:15:50 +0000"  >&lt;p&gt;I&apos;m closing this ticket because I&apos;ve not heard back from you. Please feel free to re-open the ticket if there is anything else we can help with.&lt;/p&gt;</comment>
                            <comment id="1256796" author="acm" created="Thu, 5 May 2016 18:05:21 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=androndo&quot; class=&quot;user-hover&quot; rel=&quot;androndo&quot;&gt;androndo&lt;/a&gt; - I looked into this. This code was first introduced in the MongoDB server repository here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/commit/61b8f72884dc6fee89b91a30021f41e50cb9de0e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/61b8f72884dc6fee89b91a30021f41e50cb9de0e&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That was before we split the C++ driver out of the MongoDB sources, and, as far as I can tell, that line has never changed since it was first written, in either body of code. I will try to do some research into why it works that way, however it was a long time ago. Also, please note that this sort of function is inherently racy: even though this function returns &apos;true&apos;, the connection could still go bad between when your program reads the result of calling isStillConnected, and when you actually try to use the connection. So, I can&apos;t recommend relying on this as a way of trying to be aware of connection state to work around other issues. Regarding the other issue you filed, I&apos;ll reply in that ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="284628">CXX-906</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|hsl4iv:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1055">Platforms 14 (05/13/16)</customfieldvalue>

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