<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:49 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-2660] $atomic update may yield before any writes and possibly between $or clauses</title>
                <link>https://jira.mongodb.org/browse/SERVER-2660</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In an update operation, each time we have a chance to select indexes we pick the index that produces the first match.  When we are doing this index selection, we currently may yield even if $atomic has been set for the update operation.  This yield can occur before any writes take place, and potentially between $or clauses.&lt;/p&gt;</description>
                <environment></environment>
        <key id="14953">SERVER-2660</key>
            <summary>$atomic update may yield before any writes and possibly between $or clauses</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="-1">Unassigned</assignee>
                                    <reporter username="aaron">Aaron Staple</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Mar 2011 21:52:22 +0000</created>
                <updated>Fri, 7 Mar 2014 00:20:22 +0000</updated>
                            <resolved>Wed, 28 Nov 2012 01:26:25 +0000</resolved>
                                                                    <component>Concurrency</component>
                    <component>Write Ops</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="49986" author="aaron" created="Mon, 22 Aug 2011 20:43:10 +0000"  >&lt;p&gt;Same issue with atomic delete I think.&lt;/p&gt;</comment>
                            <comment id="25021" author="aaron" created="Tue, 1 Mar 2011 23:30:36 +0000"  >&lt;p&gt;This resulted in a failure of the update_yield1 test&lt;/p&gt;

&lt;p&gt;Sun Feb 27 09:01:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt; query admin.$cmd ntoreturn:1 command: &lt;/p&gt;
{ listDatabases: 1 }
&lt;p&gt; reslen:301 10906ms&lt;br/&gt;
Sun Feb 27 09:01:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn34&amp;#93;&lt;/span&gt; update test.update_yield1  query: &lt;/p&gt;
{ $atomic: true }
&lt;p&gt; 13321ms&lt;br/&gt;
assert: [[ ]] != [[&lt;br/&gt;
	{&lt;br/&gt;
		&quot;opid&quot; : 13193985,&lt;br/&gt;
		&quot;active&quot; : true,&lt;br/&gt;
		&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
		&quot;waitingForLock&quot; : false,&lt;br/&gt;
		&quot;secs_running&quot; : 13,&lt;br/&gt;
		&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
		&quot;ns&quot; : &quot;test.update_yield1&quot;,&lt;br/&gt;
		&quot;query&quot; : &lt;/p&gt;
{
			&quot;$atomic&quot; : true
		}
&lt;p&gt;,&lt;br/&gt;
		&quot;client&quot; : &quot;127.0.0.1:39805&quot;,&lt;br/&gt;
		&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
	}&lt;br/&gt;
]] are not equal : should have been atomic&lt;br/&gt;
Error(&quot;Printing Stack Trace&quot;)@:0&lt;br/&gt;
()@shell/utils.js:21&lt;br/&gt;
(&quot;[[ ]] != [[\n\t{\n\t\t\&quot;opid\&quot; : 13193985,\n\t\t\&quot;active\&quot; : true,\n\t\t\&quot;lockType\&quot; : \&quot;write\&quot;,\n\t\t\&quot;waitingForLock\&quot; : false,\n\t\t\&quot;secs_running\&quot; : 13,\n\t\t\&quot;op\&quot; : \&quot;update\&quot;,\n\t\t\&quot;ns\&quot; : \&quot;test.update_yield1\&quot;,\n\t\t\&quot;query\&quot; : &lt;/p&gt;
{\n\t\t\t\&quot;$atomic\&quot; : true\n\t\t}
&lt;p&gt;,\n\t\t\&quot;client\&quot; : \&quot;127.0.0.1:39805\&quot;,\n\t\t\&quot;desc\&quot; : \&quot;conn\&quot;\n\t}\n]] are not equal : should have been atomic&quot;)@shell/utils.js:32&lt;br/&gt;
(&lt;span class=&quot;error&quot;&gt;&amp;#91;object Array&amp;#93;&lt;/span&gt;,&lt;span class=&quot;error&quot;&gt;&amp;#91;object Array&amp;#93;&lt;/span&gt;,&quot;should have been atomic&quot;)@shell/utils.js:60&lt;br/&gt;
@/mnt/data/slaves/Linux_64bit_Legacy_Weekly_Slow_Tests/mongo/jstests/slowWeekly/update_yield1.js:79&lt;/p&gt;

&lt;p&gt;Sun Feb 27 09:01:41 uncaught exception: [[ ]] != [[&lt;br/&gt;
	{&lt;br/&gt;
		&quot;opid&quot; : 13193985,&lt;br/&gt;
		&quot;active&quot; : true,&lt;br/&gt;
		&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
		&quot;waitingForLock&quot; : false,&lt;br/&gt;
		&quot;secs_running&quot; : 13,&lt;br/&gt;
		&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
		&quot;ns&quot; : &quot;test.update_yield1&quot;,&lt;br/&gt;
		&quot;query&quot; : &lt;/p&gt;
{
			&quot;$atomic&quot; : true
		}
&lt;p&gt;,&lt;br/&gt;
		&quot;client&quot; : &quot;127.0.0.1:39805&quot;,&lt;br/&gt;
		&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
	}&lt;br/&gt;
]] are not equal : should have been atomic&lt;br/&gt;
failed to load: /mnt/data/slaves/Linux_64bit_Legacy_Weekly_Slow_Tests/mongo/jstests/slowWeekly/update_yield1.js&lt;br/&gt;
sh12961| null&lt;br/&gt;
Sun Feb 27 09:01:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn34&amp;#93;&lt;/span&gt; end connection 127.0.0.1:39805&lt;br/&gt;
Sun Feb 27 09:01:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn32&amp;#93;&lt;/span&gt; end connection 127.0.0.1:44557&lt;br/&gt;
Sun Feb 27 09:01:42 got kill or ctrl c or hup signal 15 (Terminated), will terminate after current cmd ends&lt;br/&gt;
Sun Feb 27 09:01:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Sun Feb 27 09:01:42 dbexit: &lt;/p&gt;

&lt;p&gt;&amp;lt;&lt;a href=&quot;http://buildbot.mongodb.org/builders/Linux%2064-bit%20Legacy%20Weekly%20Slow%20Tests/builds/35/steps/test/logs/stdio&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://buildbot.mongodb.org/builders/Linux%2064-bit%20Legacy%20Weekly%20Slow%20Tests/builds/35/steps/test/logs/stdio&lt;/a&gt;&amp;gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 26 weeks, 2 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 26 weeks, 2 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>aaron</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp4tr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>20517</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|hszy6n:</customfieldvalue>

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