<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:28 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-523] OID::gen, createIndex, needs sensible error if client::initialize is not called</title>
                <link>https://jira.mongodb.org/browse/CXX-523</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;#include &amp;lt;mongo/client/dbclient.h&amp;gt;&lt;br/&gt;
#include &amp;lt;mongo/bson/oid.h&amp;gt;&lt;/p&gt;

&lt;p&gt;int main( int argc, char const* argv[] ){&lt;br/&gt;
  mongo::OID::gen();&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Yields:&lt;/p&gt;

&lt;p&gt;/usr/local/include/boost/smart_ptr/scoped_ptr.hpp:99: T* boost::scoped_ptr&amp;lt;T&amp;gt;::operator-&amp;gt;() const &lt;span class=&quot;error&quot;&gt;&amp;#91;with T = mongo::AtomicWord&amp;lt;unsigned int&amp;gt;&amp;#93;&lt;/span&gt;: Assertion `px != 0&apos; failed.&lt;/p&gt;

&lt;p&gt;I can create a client connection and createIndex. The library then fails in the same mysterious way.&lt;/p&gt;

&lt;p&gt;client::initialize() was missed. Library should error out sensibly where initialize is required and forgotten. &lt;/p&gt;</description>
                <environment></environment>
        <key id="183562">CXX-523</key>
            <summary>OID::gen, createIndex, needs sensible error if client::initialize is not called</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="stuartreynolds">Stuart Reynolds</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Tue, 10 Feb 2015 18:39:39 +0000</created>
                <updated>Sun, 22 Feb 2015 17:56:00 +0000</updated>
                            <resolved>Sun, 22 Feb 2015 17:56:00 +0000</resolved>
                                    <version>legacy-1.0.0-rc4</version>
                    <version>legacy-1.0.0</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="831631" author="acm" created="Wed, 18 Feb 2015 15:07:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stuartreynolds&quot; class=&quot;user-hover&quot; rel=&quot;stuartreynolds&quot;&gt;stuartreynolds&lt;/a&gt; -&lt;/p&gt;

&lt;p&gt;Thanks for the report. For us to do this meaningfully, we would need to instrument every path into the driver with the appropriate checks for initialization, and those checks would be pure overhead in all valid runtime paths into the driver where initialize had already been called. It is well documented that you must call the initialize functions before using the driver, and all of our example code does so. Additionally many entry points that require prior initialization do not have an error return path, so we would need to crash with an assertion failure anyway, just with a different message.&lt;/p&gt;

&lt;p&gt;Our assessment is that we do not believe that this change offers enough benefit to justify the additional complexity.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&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|hs674n:</customfieldvalue>

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