<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:09:52 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-557] failed client creation doesn&apos;t result in Null returned</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-557</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Utilising the mongoc driver, ive discovered that when you create a connection, using&lt;br/&gt;
client = mongoc_client_new(connection_string);&lt;/p&gt;

&lt;p&gt;The returned value when the mongodb isnt running is not a null value. This means any tests/checks carried out do not catch that the server hasnt been connected to, causing issues further down the line. &lt;/p&gt;

&lt;p&gt;Looking in the source I can&apos;t see anything that would set a value Null, either in v1.0.2, not v1.1.0 that was recently released. &lt;/p&gt;</description>
                <environment>Windows 7, visual studio 2010 express,</environment>
        <key id="187452">CDRIVER-557</key>
            <summary>failed client creation doesn&apos;t result in Null returned</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="maza256">Mark Stevens</reporter>
                        <labels>
                            <label>Bug</label>
                            <label>Client</label>
                            <label>Connection</label>
                    </labels>
                <created>Wed, 4 Mar 2015 16:46:50 +0000</created>
                <updated>Wed, 3 May 2017 22:15:06 +0000</updated>
                            <resolved>Wed, 4 Mar 2015 17:33:27 +0000</resolved>
                                    <version> 1.0.2 </version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="842901" author="bjori" created="Wed, 4 Mar 2015 17:33:27 +0000"  >&lt;p&gt;This is intentional.&lt;br/&gt;
All MongoDB drivers use &quot;lazy connections&quot; &amp;#8211; we don&apos;t actually create the first connection to MongoDB until we actually have something to send to MongoDB.&lt;/p&gt;

&lt;p&gt;This is done for HA reasons; You should always be able to create a mongoc_client_t instance &amp;#8211; even when the server is down.&lt;br/&gt;
By the time you actually execute something, we may have found a server that is available.&lt;/p&gt;

&lt;p&gt;You should be checking the results of all over-the-wire operations anyway, as they could fail at any time, so lazy connections actually reduce the amount of error checking you need to do in your code since you don&apos;t need to handle failing to create mongoc_client&lt;/p&gt;</comment>
                    </comments>
                    <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|hs6t1b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>165169</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>