<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:41:38 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>[CSHARP-2109] Race condition in Drivers.Core.BinaryConnectionTests</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2109</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;There appears to be a race condition in Drivers.Core.BinaryConnectionTests that makes the test fail on certain runs and pass on others.&lt;/p&gt;

&lt;p&gt;Specifically: MongoDB.Driver.Core.Connections.BinaryConnectionTests.SendMessageshould_throw_MongoConnectionClosedException_for_waiting_tasks&lt;/p&gt;

&lt;p&gt;On the same patch:&lt;br/&gt;
Failure:&lt;br/&gt;
&lt;a href=&quot;https://evergreen.mongodb.com/task_log_raw/dot_net_driver_tests__version~2.6_os~windows_64_topology~standalone_auth~auth_ssl~nossl_test_patch_1c20602fb9e95e393c452e91109caa467c541c84_5a15923c2a60ed07c5002abc_17_11_22_15_06_17/0?type=T&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/task_log_raw/dot_net_driver_tests__version~2.6_os~windows_64_topology~standalone_auth~auth_ssl~nossl_test_patch_1c20602fb9e95e393c452e91109caa467c541c84_5a15923c2a60ed07c5002abc_17_11_22_15_06_17/0?type=T&lt;/a&gt;&lt;br/&gt;
Pass:&lt;br/&gt;
&lt;a href=&quot;https://evergreen.mongodb.com/task_log_raw/dot_net_driver_tests__version~2.6_os~windows_64_topology~standalone_auth~auth_ssl~nossl_test_patch_1c20602fb9e95e393c452e91109caa467c541c84_5a15923c2a60ed07c5002abc_17_11_22_15_06_17/1?type=T&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/task_log_raw/dot_net_driver_tests__version~2.6_os~windows_64_topology~standalone_auth~auth_ssl~nossl_test_patch_1c20602fb9e95e393c452e91109caa467c541c84_5a15923c2a60ed07c5002abc_17_11_22_15_06_17/1?type=T&lt;/a&gt;&lt;/p&gt;
</description>
                <environment></environment>
        <key id="463130">CSHARP-2109</key>
            <summary>Race condition in Drivers.Core.BinaryConnectionTests</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="13201">Fixed</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="vincent.kam@mongodb.com">Vincent Kam</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Nov 2017 23:32:24 +0000</created>
                <updated>Sat, 28 Oct 2023 11:49:12 +0000</updated>
                            <resolved>Tue, 28 Nov 2017 22:17:20 +0000</resolved>
                                                    <fixVersion>2.5</fixVersion>
                                    <component>Testing</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1736763" author="xgen-internal-githook" created="Tue, 28 Nov 2017 22:16:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;username&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2109&quot; title=&quot;Race condition in Drivers.Core.BinaryConnectionTests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2109&quot;&gt;&lt;del&gt;CSHARP-2109&lt;/del&gt;&lt;/a&gt;: Fix race condition in BinaryConnectionTests.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/ae4c63065979bc105cab4c4a36bb9dbf2867cfa1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/ae4c63065979bc105cab4c4a36bb9dbf2867cfa1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1733830" author="rstam" created="Thu, 23 Nov 2017 19:21:37 +0000"  >&lt;p&gt;Extracting the setup code from the constructor to a helper method that can be called every iteration I am able to run the test as many times as I want.&lt;/p&gt;

&lt;p&gt;The first run of 10,000 iterations did not fail, but the second run did, so this can be reproduced locally.&lt;/p&gt;</comment>
                            <comment id="1733826" author="rstam" created="Thu, 23 Nov 2017 19:11:09 +0000"  >&lt;p&gt;Even iterating just 2 times causes the test to fail.&lt;/p&gt;

&lt;p&gt;It turns out that these tests &lt;b&gt;can&apos;t&lt;/b&gt; be run more than once because they depend on setup that is happening in the constructor, so the 2nd iteration isn&apos;t being properly initialized.&lt;/p&gt;

&lt;p&gt;I didn&apos;t realize this at first because when looking at the test it wasn&apos;t obvious that there was some initialization happening somewhere else.&lt;/p&gt;</comment>
                            <comment id="1733821" author="rstam" created="Thu, 23 Nov 2017 18:47:56 +0000"  >&lt;p&gt;I can reliably make this test fail by putting the entire test body inside a for loop and iterating 1000 times.&lt;/p&gt;

&lt;p&gt;However, it is failing in a different way. The first SpinUntil is timing out.&lt;/p&gt;</comment>
                            <comment id="1733812" author="rstam" created="Thu, 23 Nov 2017 18:27:49 +0000"  >&lt;p&gt;Here are the relevant lines from the log file:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057] Failed   MongoDB.Driver.Core.Connections.BinaryConnectionTests.SendMessageshould_throw_MongoConnectionClosedException_for_waiting_tasks(async1: True, async2: False)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057] Error Message:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057]  Expected type to be MongoDB.Driver.Core.Events.ConnectionSendingMessagesEvent, but found MongoDB.Driver.Core.Events.ConnectionFailedEvent.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057] Stack Trace:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057]    at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057]    at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057]    at FluentAssertions.Types.TypeAssertions.Be(Type expected, String because, Object[] becauseArgs)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057]    at FluentAssertions.Primitives.ReferenceTypeAssertions`2.BeOfType(Type expectedType, String because, Object[] becauseArgs)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057]    at FluentAssertions.Primitives.ReferenceTypeAssertions`2.BeOfType[T](String because, Object[] becauseArgs)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:27.057]    at MongoDB.Driver.Core.Connections.BinaryConnectionTests.SendMessageshould_throw_MongoConnectionClosedException_for_waiting_tasks(Boolean async1, Boolean async2) in C:\data\mci\4864f98f59d47dc62b14c0ef0b797e30\mongo-csharp-driver\tests\MongoDB.Driver.Core.Tests\Core\Connections\BinaryConnectionTests.cs:line 720&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/11/22 11:20:47.771] Total tests: 3881. Passed: 3880. Failed: 1. Skipped: 0.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                    </comments>
                    <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrax27:</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>