<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:32 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-550]  the exception in the mongo-cxx-driver</title>
                <link>https://jira.mongodb.org/browse/CXX-550</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;The application is used the driver to connect the MongoDB Server. It will failed and throw exception on sometime. I catch the exception, but the next request is failed.&lt;br/&gt;
Look the cmd of the MongoDB Server. It is normal. But I forget added the log flags when run the MongoDB Server.&lt;br/&gt;
So I only Provide the image of the application runned.&lt;br/&gt;
MongoDB :  win32-i386-2.6.5&lt;br/&gt;
Client : win7 x64&lt;/p&gt;</description>
                <environment></environment>
        <key id="187368">CXX-550</key>
            <summary> the exception in the mongo-cxx-driver</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="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="chen610620">Fly.ang</reporter>
                        <labels>
                            <label>driver</label>
                            <label>exception</label>
                            <label>legacy-cxx</label>
                            <label>query</label>
                    </labels>
                <created>Wed, 4 Mar 2015 07:34:12 +0000</created>
                <updated>Fri, 6 Mar 2015 19:10:31 +0000</updated>
                            <resolved>Fri, 6 Mar 2015 19:10:31 +0000</resolved>
                                    <version>legacy-1.0.0-rc1</version>
                                                    <component>API</component>
                    <component>Release</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="845125" author="acm" created="Fri, 6 Mar 2015 19:10:18 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=chen610620&quot; class=&quot;user-hover&quot; rel=&quot;chen610620&quot;&gt;chen610620&lt;/a&gt; -&lt;/p&gt;

&lt;p&gt;You are correct: the Connection object is not thread safe, by design. The correct way to manage this is to either give every thread a thread-local connection object, or to write a thread-safe pool of connections, and have threads request and return connections from the pool. Which strategy is best depends heavily on the design of the application.&lt;/p&gt;

&lt;p&gt;I&apos;m going to close this issue, please feel free to re-open it if you require additional help with this issue.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                            <comment id="844925" author="chen610620" created="Fri, 6 Mar 2015 16:39:52 +0000"  >&lt;p&gt;Thanks all.&lt;br/&gt;
I find the reason. It because the multi-thread. The Connection is not safe in multi-thread.So I used the mutex.&lt;br/&gt;
Is there a better solution? I want to have better performance, if can. &lt;/p&gt;</comment>
                            <comment id="842649" author="tyler@10gen.com" created="Wed, 4 Mar 2015 13:39:52 +0000"  >&lt;p&gt;Thank you for reporting the issue.&lt;/p&gt;

&lt;p&gt;Would it be possible to upgrade the driver to legacy-1.0.0-stable? Is it possible to share the code that is throwing the exception? It is likely that the driver will throw errors which are not shown on the server (for example when it cannot connect or is disconnected &amp;#8211; there is a socket exception).&lt;/p&gt;

&lt;p&gt;Any additional information you could give us about the code in the application (possibly in the form of a small reproducible example or succinct explanation if you cannot provide the code iteself) would help.&lt;/p&gt;

&lt;p&gt;-Tyler&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="66424" name="mongoDBServer.jpg" size="145595" author="chen610620" created="Wed, 4 Mar 2015 07:34:12 +0000"/>
                            <attachment id="66423" name="{2551D4CB-1AAC-4F92-8A48-B7F2D5FFDBD3}.bmp" size="703134" author="chen610620" created="Wed, 4 Mar 2015 07:34:12 +0000"/>
                    </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|hs6sjj:</customfieldvalue>

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