<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:05 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>[SERVER-1804] Fixed race conditions in the C++ driver (BackgroundJob)</title>
                <link>https://jira.mongodb.org/browse/SERVER-1804</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;While using the C++ driver, my application would randomly fail to connect under load. I tracked the problem down to a race condition in BackgroundJob. I have attached a patch which fixes the race condition. The problem was the inefficient sleepmillis() loops, which would cause the connection timeout to be reached even though the connection was successful.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13111">SERVER-1804</key>
            <summary>Fixed race conditions in the C++ driver (BackgroundJob)</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="alerner">Alberto Lerner</assignee>
                                    <reporter username="toffaletti">Jason Toffaletti</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Sep 2010 19:40:23 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:21 +0000</updated>
                            <resolved>Sat, 23 Oct 2010 17:01:38 +0000</resolved>
                                    <version>1.6.2</version>
                                    <fixVersion>1.7.2</fixVersion>
                                    <component>Internal Client</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="19551" author="alerner" created="Sat, 23 Oct 2010 17:01:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: fix overflow in BackgroundJob::wait &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1967&quot; title=&quot;cursora test failing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1967&quot;&gt;&lt;del&gt;SERVER-1967&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/94f15f18f40c1fe8a5204d18e3a96d1caa240fee&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/94f15f18f40c1fe8a5204d18e3a96d1caa240fee&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="19457" author="toffaletti" created="Thu, 21 Oct 2010 20:40:18 +0000"  >&lt;p&gt;Sorry, I haven&apos;t had time to test this, been very busy lately. The new code looks correct though. Feel free to close the bug. As an aside, I used helgrind to locate this bug initially, so it might be worth looking into if you aren&apos;t already aware of it.&lt;/p&gt;</comment>
                            <comment id="19449" author="alerner" created="Thu, 21 Oct 2010 18:11:56 +0000"  >&lt;p&gt;Jason, any news on this?&lt;/p&gt;</comment>
                            <comment id="19163" author="alerner" created="Wed, 13 Oct 2010 21:46:22 +0000"  >&lt;p&gt;Jason, could you check if the latest change addressed it? &lt;/p&gt;</comment>
                            <comment id="19162" author="auto" created="Wed, 13 Oct 2010 21:45:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;alerner&apos;, &apos;name&apos;: &apos;Alberto Lerner&apos;, &apos;email&apos;: &apos;alerner@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1804&quot; title=&quot;Fixed race conditions in the C++ driver (BackgroundJob)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1804&quot;&gt;&lt;del&gt;SERVER-1804&lt;/del&gt;&lt;/a&gt; fix comment&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/6d3cccb53dc1858b782504b43f1cb18a1c140e8d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/6d3cccb53dc1858b782504b43f1cb18a1c140e8d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="19160" author="auto" created="Wed, 13 Oct 2010 21:39:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;alerner&apos;, &apos;name&apos;: &apos;Alberto Lerner&apos;, &apos;email&apos;: &apos;alerner@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1804&quot; title=&quot;Fixed race conditions in the C++ driver (BackgroundJob)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1804&quot;&gt;&lt;del&gt;SERVER-1804&lt;/del&gt;&lt;/a&gt; tighter background job&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/465896350e7a6fe0f508a1a73247e05c20950ff2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/465896350e7a6fe0f508a1a73247e05c20950ff2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="18329" author="toffaletti" created="Fri, 17 Sep 2010 17:10:33 +0000"  >&lt;p&gt;I tried &lt;a href=&quot;http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-latest.tgz&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-latest.tgz&lt;/a&gt; before writing my patch. It was still causing the race condition and in addition had a segfault where std::stack.empty() would return false yet std::stack.size() would return 0 in the PoolForHost code.&lt;/p&gt;</comment>
                            <comment id="18304" author="eliot" created="Fri, 17 Sep 2010 05:26:56 +0000"  >&lt;p&gt;We may have already fixed this i master.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10452" name="mongo-cxx-driver-v1.6-fixed.diff" size="4671" author="toffaletti" created="Thu, 16 Sep 2010 19:40:23 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 17 Sep 2010 05:26:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 17 weeks, 4 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 17 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alerner</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>toffaletti</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpeyf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrijfz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21802</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0hkn:</customfieldvalue>

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