<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:01:34 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>[JAVA-4241] Race condition in Scala wrapper&apos;s FlatMapObservable</title>
                <link>https://jira.mongodb.org/browse/JAVA-4241</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Call sequence that leads to the incorrect behavior&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;A:&#160;Observer[S]#onComplete&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;A:&#160;nestedSubscription = None&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;B:&#160;Observer[T]#onComplete&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;B:&#160;onCompleteCalled == false&#160;=&amp;gt; B:&#160;onCompleteCalled = true&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;B:&#160;nestedSubscription.isEmpty == true&#160;=&amp;gt; B:&#160;observer.onComplete()&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;A:&#160;onCompleteCalled == true&#160;=&amp;gt; A:&#160;observer.onComplete&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Failing test with reproduction: &lt;a href=&quot;https://github.com/tkroman/mongo-java-driver/blob/flatmap-observable-fix/driver-scala/src/test/scala/org/mongodb/scala/internal/FlatMapObservableTest.scala&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;pr/761&lt;/a&gt; (fails on master, passes on the linked branch)&lt;/p&gt;</description>
                <environment></environment>
        <key id="1823159">JAVA-4241</key>
            <summary>Race condition in Scala wrapper&apos;s FlatMapObservable</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="rmn.tk.ml@gmail.com">Roman Tkalenko</reporter>
                        <labels>
                            <label>external-user</label>
                    </labels>
                <created>Sat, 17 Jul 2021 22:02:22 +0000</created>
                <updated>Sat, 28 Oct 2023 11:21:07 +0000</updated>
                            <resolved>Thu, 29 Jul 2021 14:29:03 +0000</resolved>
                                                    <fixVersion>4.3.1</fixVersion>
                                    <component>Scala</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3970529" author="xgen-internal-githook" created="Thu, 29 Jul 2021 14:30:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ross Lawley&apos;, &apos;email&apos;: &apos;ross.lawley@gmail.com&apos;, &apos;username&apos;: &apos;rozza&apos;}
&lt;p&gt;Message: Fix FlatMapObservableTest&lt;/p&gt;

&lt;p&gt;Add header and ensure can run in Scala 2.11&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4241&quot; title=&quot;Race condition in Scala wrapper&amp;#39;s FlatMapObservable&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4241&quot;&gt;&lt;del&gt;JAVA-4241&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 4.3.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/357ce8ba04d147cc77fde42dbdf06e5eddd2840b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/357ce8ba04d147cc77fde42dbdf06e5eddd2840b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3970528" author="xgen-internal-githook" created="Thu, 29 Jul 2021 14:30:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Roman Tkalenko&apos;, &apos;email&apos;: &apos;rmn.tk.ml@gmail.com&apos;, &apos;username&apos;: &apos;tkroman&apos;}
&lt;p&gt;Message: Fix race condition in FlatMapObservable completion handler&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4241&quot; title=&quot;Race condition in Scala wrapper&amp;#39;s FlatMapObservable&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4241&quot;&gt;&lt;del&gt;JAVA-4241&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 4.3.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/f5c00d7f48d0a2a68b254ce580b5a806f5ca053e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f5c00d7f48d0a2a68b254ce580b5a806f5ca053e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3970521" author="xgen-internal-githook" created="Thu, 29 Jul 2021 14:28:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ross Lawley&apos;, &apos;email&apos;: &apos;ross.lawley@gmail.com&apos;, &apos;username&apos;: &apos;rozza&apos;}
&lt;p&gt;Message: Fix FlatMapObservableTest&lt;/p&gt;

&lt;p&gt;Add header and ensure can run in Scala 2.11&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4241&quot; title=&quot;Race condition in Scala wrapper&amp;#39;s FlatMapObservable&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4241&quot;&gt;&lt;del&gt;JAVA-4241&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e5e2ff243f55c04e6307b57f2ae61aa1fe06c3eb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e5e2ff243f55c04e6307b57f2ae61aa1fe06c3eb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3970520" author="xgen-internal-githook" created="Thu, 29 Jul 2021 14:28:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Roman Tkalenko&apos;, &apos;email&apos;: &apos;rmn.tk.ml@gmail.com&apos;, &apos;username&apos;: &apos;tkroman&apos;}
&lt;p&gt;Message: Fix race condition in FlatMapObservable completion handler&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4241&quot; title=&quot;Race condition in Scala wrapper&amp;#39;s FlatMapObservable&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4241&quot;&gt;&lt;del&gt;JAVA-4241&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/7033c6c2800773b5a9864e88aa2912f4adcfa696&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/7033c6c2800773b5a9864e88aa2912f4adcfa696&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3949205" author="JIRAUSER1261213" created="Mon, 19 Jul 2021 12:19:44 +0000"  >&lt;p&gt;Github PR:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/761&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/761&lt;/a&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|hzd71b:</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>