<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:06:25 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-2589] it failed when I use C++ program to connect to mongoDB ,error message is &quot;mongocxx::v_noabi::bulk_write_exception&quot;</title>
                <link>https://jira.mongodb.org/browse/CXX-2589</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;it failed when I use C++ program to connect to mongoDB ,error message is&#160;&lt;/p&gt;

&lt;p&gt;terminate called after throwing an instance of &apos;mongocxx::v_noabi::bulk_write_exception&apos;&lt;br/&gt;
&#160; what(): &#160;: generic server error&lt;br/&gt;
Aborted (core dumped)&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Environment&quot;&gt;&lt;/a&gt;Environment&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Please provide the version of the C / CXX driver.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;mongo-cxx-driver-r3.6.7&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;mongo-cxx-driver-r3.6.7&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;host OS :ubuntu 18.04 x86&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;cmake version 3.10.2&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If applicable, please attach the full output of the cmake command used to configure the C / CXX driver.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;zhaoy10@zhaoy10:/media/zhaoy10/ACAD44B84EA1A705/fullmap/mongoDB$ c++ --std=c++11 test1.cpp $(pkg-config --cflags --libs libmongocxx)&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;zhaoy10@zhaoy10:/media/zhaoy10/ACAD44B84EA1A705/fullmap/mongoDB$ ./test&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;terminate called after throwing an instance of &apos;mongocxx::v_noabi::bulk_write_exception&apos;&lt;/em&gt;&lt;br/&gt;
&#160; &lt;em&gt;what(): &#160;: generic server error&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;Aborted (core dumped)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;you can use the below test1.cpp to reproduce the issue, I deleted the mongoDB url because it contains the user name and password&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Please provide any additional background information that may be helpful in diagnosing the bug.&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2154871">CXX-2589</key>
            <summary>it failed when I use C++ program to connect to mongoDB ,error message is &quot;mongocxx::v_noabi::bulk_write_exception&quot;</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="13203">Gone away</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="zhaoy10@xiaopeng.com">yang zhao</reporter>
                        <labels>
                    </labels>
                <created>Sat, 8 Oct 2022 10:33:20 +0000</created>
                <updated>Fri, 27 Oct 2023 19:48:22 +0000</updated>
                            <resolved>Mon, 10 Oct 2022 18:03:26 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4889324" author="JIRAUSER1271455" created="Mon, 10 Oct 2022 02:13:19 +0000"  >&lt;p&gt;the problem has been resolved,thanks!&lt;/p&gt;</comment>
                            <comment id="4888590" author="JIRAUSER1271455" created="Sun, 9 Oct 2022 08:55:26 +0000"  >&lt;p&gt;I tried to add the catch the exception , it gave the below error code ,please kindly help me check&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;zhaoy10@zhaoy10:/media/zhaoy10/ACAD44B84EA1A705/fullmap/mongoDB$ ./test&lt;br/&gt;
code=mongodb:13053&lt;br/&gt;
message=No suitable servers found (`serverSelectionTryOnce` set): generic server error&lt;br/&gt;
error reply={ }&lt;br/&gt;
terminate called after throwing an instance of &apos;mongocxx::v_noabi::query_exception&apos;&lt;br/&gt;
&#160; what(): &#160;No suitable servers found (`serverSelectionTryOnce` set): generic server error&lt;br/&gt;
Aborted (core dumped)&lt;br/&gt;
zhaoy10@zhaoy10:/media/zhaoy10/ACAD44B84EA1A705/fullmap/mongoDB$&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="407104" name="test1.cpp" size="1753" author="zhaoy10@xiaopeng.com" created="Sat, 8 Oct 2022 10:30:25 +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|i0w0ow:</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>