<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:00 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-2053] test-libbson starts too many threads</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2053</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The libbson test suite fails on 32-bit MIPS and 32-bit MIPS Little Endian:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://buildd.debian.org/status/package.php?p=libbson&amp;amp;suite=sid&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://buildd.debian.org/status/package.php?p=libbson&amp;amp;suite=sid&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The bug was reported to me originally against 1.5.4. In fact the tests had failed since 1.5.0 but the  since the Debian maintainers didn&apos;t catch up on their backlog and file a bug related to the failure immediately. I should ensure I get emails about future test failures.&lt;/p&gt;

&lt;p&gt;Roberto Sanchez and I logged into a MIPS machine (I believe it was a 64-bit MIPS big endian?) in the Debian autobuilder network and were able to reproduce the crash: late in the test suite, test-libbson aborts with return code 134. We could fix it by commenting-out a dozen tests; but it didn&apos;t seem to matter which ones we commented out. We could also fix the tests by running them single-threaded.&lt;/p&gt;

&lt;p&gt;The threaded test runner starts a thread per test and runs them all at once. I hypothesize that we added enough tests between 1.4.2 and 1.5.0 that we hit a limit on the number of threads a MIPS process can start. There are almost 250 tests total.&lt;/p&gt;

&lt;p&gt;To fix:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Update the parallel runner to limit the number of concurrent threads&lt;/li&gt;
	&lt;li&gt;Don&apos;t run in threaded mode by default, anyway - it could make it hard to diagnose future build failures&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Debian Stretch has just entered a freeze and will be released soon. We have libbson and libmongoc 1.4.2 in Stretch, and we won&apos;t be able to get anything new included, since this build failure was introduced circa 1.5.0. I think that&apos;s ok, the new features in libbson and libmongoc were MongoDB 3.4 support and native TLS on non-Linux, not having these in Debian is fine. Regardless, there&apos;s no urgency about fixing this now, we missed the deadline for 1.5.x in Stretch.&lt;/p&gt;

&lt;p&gt;The next Debian release, Buster, will be frozen 18 to 24 months from now. Its timeline will be announced soon.&lt;/p&gt;</description>
                <environment></environment>
        <key id="353897">CDRIVER-2053</key>
            <summary>test-libbson starts too many threads</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Feb 2017 21:42:02 +0000</created>
                <updated>Mon, 6 Mar 2017 00:24:29 +0000</updated>
                            <resolved>Fri, 24 Feb 2017 22:51:13 +0000</resolved>
                                    <version>1.5.0</version>
                                    <fixVersion>1.6.1</fixVersion>
                                    <component>libbson</component>
                    <component>tests</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1515681" author="jesse" created="Fri, 3 Mar 2017 19:45:00 +0000"  >&lt;p&gt;r1.6: &lt;a href=&quot;https://github.com/mongodb/libbson/commit/2ea6bf92472972179b25feeb64ce135a68720128&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/2ea6bf92472972179b25feeb64ce135a68720128&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1509364" author="xgen-internal-githook" created="Fri, 24 Feb 2017 22:49:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2053&quot; title=&quot;test-libbson starts too many threads&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2053&quot;&gt;&lt;del&gt;CDRIVER-2053&lt;/del&gt;&lt;/a&gt; run tests in only ten threads&lt;/p&gt;

&lt;p&gt;Previously we had a thread per test; once the number exceeded circa 250,&lt;br/&gt;
test-libbson --threads failed on MIPS.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/25da908e223295627b881a3a0947b5d546eb66da&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/25da908e223295627b881a3a0947b5d546eb66da&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="351760">CDRIVER-2033</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="149570" name="CDRIVER-2053-limit-threads-in-test-suite.patch" size="3786" author="jesse@mongodb.com" created="Wed, 15 Feb 2017 14:25:07 +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|hsuz0f:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1602">C Driver 2017 2 - Feb 10, 2019</customfieldvalue>

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