<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:10:30 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-748] Test with ThreadSanitizer</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-748</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Test with TSAN in continuous integration. The driver should not ship with thread sanitizer warnings.&lt;/p&gt;</description>
                <environment></environment>
        <key id="217088">CDRIVER-748</key>
            <summary>Test with ThreadSanitizer</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="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Jul 2015 21:26:58 +0000</created>
                <updated>Thu, 30 Jul 2020 20:01:44 +0000</updated>
                            <resolved>Thu, 2 Jul 2020 19:22:21 +0000</resolved>
                                                    <fixVersion>1.17.0-rc0</fixVersion>
                    <fixVersion>1.17.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3281156" author="xgen-internal-githook" created="Sat, 11 Jul 2020 16:20:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; add TSAN tasks&lt;br/&gt;
Branch: r1.17&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e1ffa0942b7998ac9f9b106554a283002a35341a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e1ffa0942b7998ac9f9b106554a283002a35341a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3281155" author="xgen-internal-githook" created="Sat, 11 Jul 2020 16:20:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; fix TSAN for topology tests&lt;br/&gt;
Branch: r1.17&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/f9b21490de397361398ac0df006ec1bc991832d0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/f9b21490de397361398ac0df006ec1bc991832d0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3281154" author="xgen-internal-githook" created="Sat, 11 Jul 2020 16:20:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; fix mock server for TSAN&lt;/p&gt;

&lt;p&gt;mock_server_hangs_up and mock_server_resets were closing a&lt;br/&gt;
request stream directly from the main thread. But a request&lt;br/&gt;
stream should only be accessed by the worker thread. This&lt;br/&gt;
now adds a special reply to the worker thread&apos;s queue&lt;br/&gt;
to signal a hangup or reset.&lt;br/&gt;
Branch: r1.17&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/867e24cba113584723c6ac28c5adccfea7a56931&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/867e24cba113584723c6ac28c5adccfea7a56931&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3269038" author="xgen-internal-githook" created="Thu, 2 Jul 2020 19:22:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; add TSAN tasks&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/dcc051d0a076719f3e84a8c525f79985a4f2be57&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/dcc051d0a076719f3e84a8c525f79985a4f2be57&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3269036" author="xgen-internal-githook" created="Thu, 2 Jul 2020 19:22:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; fix TSAN for topology tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/7c950d7a38df375300d6488a24143f5f2a52bf72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/7c950d7a38df375300d6488a24143f5f2a52bf72&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3269035" author="xgen-internal-githook" created="Thu, 2 Jul 2020 19:22:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; fix mock server for TSAN&lt;/p&gt;

&lt;p&gt;mock_server_hangs_up and mock_server_resets were closing a&lt;br/&gt;
request stream directly from the main thread. But a request&lt;br/&gt;
stream should only be accessed by the worker thread. This&lt;br/&gt;
now adds a special reply to the worker thread&apos;s queue&lt;br/&gt;
to signal a hangup or reset.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/558f2f4e2d7c4d0a8d300f3f7740b755263f533b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/558f2f4e2d7c4d0a8d300f3f7740b755263f533b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3267044" author="kevin.albertson" created="Wed, 1 Jul 2020 23:58:53 +0000"  >&lt;p&gt;PR:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/653&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/653&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3191345" author="kevin.albertson" created="Thu, 4 Jun 2020 21:56:19 +0000"  >&lt;p&gt;PR: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/620&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/620&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3141999" author="xgen-internal-githook" created="Fri, 29 May 2020 02:18:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; fix mock server for TSAN (#620)&lt;/p&gt;

&lt;p&gt;mock_server_hangs_up and mock_server_resets were closing a&lt;br/&gt;
request stream directly from the main thread. But a request&lt;br/&gt;
stream should only be accessed by the worker thread. This&lt;br/&gt;
now adds a special reply to the worker thread&apos;s queue&lt;br/&gt;
to signal a hangup or reset.&lt;br/&gt;
Branch: r1.17&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/02fd694b01313ea33a028c730ca16fac22ac2725&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/02fd694b01313ea33a028c730ca16fac22ac2725&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3141937" author="xgen-internal-githook" created="Fri, 29 May 2020 01:08:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; fix mock server for TSAN (#620)&lt;/p&gt;

&lt;p&gt;mock_server_hangs_up and mock_server_resets were closing a&lt;br/&gt;
request stream directly from the main thread. But a request&lt;br/&gt;
stream should only be accessed by the worker thread. This&lt;br/&gt;
now adds a special reply to the worker thread&apos;s queue&lt;br/&gt;
to signal a hangup or reset.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/a562d82c9692cb0392df1b7460390d6d3f288a65&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/a562d82c9692cb0392df1b7460390d6d3f288a65&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2091587" author="kevin.albertson" created="Fri, 14 Dec 2018 22:23:07 +0000"  >&lt;p&gt;We should validate that we don&apos;t concurrently access &lt;tt&gt;mongoc_topology_scanner_node_t&lt;/tt&gt; in the scanner thread and outside. Some things seem suspicious, e.g. &lt;tt&gt;_mongoc_topology_update_last_used&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="1373608" author="xgen-internal-githook" created="Wed, 31 Aug 2016 17:21:32 +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-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; thread-sanitize the mock server&lt;/p&gt;

&lt;p&gt;It had been reading client requests on a worker thread, then passing the&lt;br/&gt;
client stream to the main thread to right the server reply. Don&apos;t share&lt;br/&gt;
the stream object between threads: enqueue the main thread&apos;s reply and&lt;br/&gt;
actually send it on the worker thread.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8fd25223acba9e63fe81c1d4712890cad96163b8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8fd25223acba9e63fe81c1d4712890cad96163b8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1373607" author="xgen-internal-githook" created="Wed, 31 Aug 2016 17:21:31 +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-748&quot; title=&quot;Test with ThreadSanitizer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-748&quot;&gt;&lt;del&gt;CDRIVER-748&lt;/del&gt;&lt;/a&gt; thread-sanitize the topology tests&lt;/p&gt;

&lt;p&gt;Valgrind&apos;s DRD rightly warns that future_topology_select and the main&lt;br/&gt;
thread have conflicting loads of &quot;scanner-&amp;gt;async-&amp;gt;ncmds&quot;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/63ce66dd5df8cd91ee31f27268a129cfbdbfec5d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/63ce66dd5df8cd91ee31f27268a129cfbdbfec5d&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="244599">CDRIVER-1055</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-2733</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsb82f:</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>