<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:40:10 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-16165] multi-update gets stuck retrying after WriteConflict</title>
                <link>https://jira.mongodb.org/browse/SERVER-16165</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have a collection with 10 docs, and 2 client threads are operating on it.  Each one is repeatedly doing a multi-update on all docs in the collection.  The multi-update involves both normal indexes and multikey indexes.&lt;/p&gt;

&lt;p&gt;At some point, the server starts logging &quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;conn5&amp;#93;&lt;/span&gt; Got a WriteConflict in the middle of a multi-update, retrying the current doc&quot; over and over, and the clients stop making progress.&lt;/p&gt;

&lt;p&gt;Attached are the server log and the backtraces of all threads after attaching gdb to the server.&lt;/p&gt;</description>
                <environment></environment>
        <key id="169445">SERVER-16165</key>
            <summary>multi-update gets stuck retrying after WriteConflict</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="3">Duplicate</resolution>
                                        <assignee username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</assignee>
                                    <reporter username="david.percy@mongodb.com">David Percy</reporter>
                        <labels>
                            <label>28qa</label>
                    </labels>
                <created>Fri, 14 Nov 2014 22:48:39 +0000</created>
                <updated>Mon, 23 Mar 2015 17:49:02 +0000</updated>
                            <resolved>Wed, 26 Nov 2014 14:28:38 +0000</resolved>
                                    <version>2.8.0-rc0</version>
                                                    <component>Concurrency</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="773297" author="eliot" created="Wed, 26 Nov 2014 14:28:21 +0000"  >&lt;p&gt;Confirmed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16143&quot; title=&quot;WriteConflict returned to client with concurrent multikey index inserts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16143&quot;&gt;&lt;del&gt;SERVER-16143&lt;/del&gt;&lt;/a&gt; fixes this as well.&lt;/p&gt;</comment>
                            <comment id="767281" author="eliot" created="Tue, 18 Nov 2014 20:14:32 +0000"  >&lt;p&gt;Almost positive this is the same root as issue as &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16143&quot; title=&quot;WriteConflict returned to client with concurrent multikey index inserts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16143&quot;&gt;&lt;del&gt;SERVER-16143&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="767181" author="rassi@10gen.com" created="Tue, 18 Nov 2014 18:49:21 +0000"  >&lt;p&gt;The test in question spawns 64 threads performing multi-updates.  With David&apos;s repro script, I can reproduce a scenario in which 2 of them enter an infinite loop, and the other 62 are waiting on a lock:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;1 multi-update thread is waiting to upgrade collection IX=&amp;gt;X for IndexCatalogEntry::setMultiKey().&lt;/li&gt;
	&lt;li&gt;61 multi-update threads are waiting for collection IX, to start the multi-update.&lt;/li&gt;
	&lt;li&gt;2 multi-update threads are holding collection IX, and are in an infinite loop.  The threads get a return value of WT_ROLLBACK from a call to (WT_CURSOR*)-&amp;gt;update() (in WiredTigerRecordStore::updateRecord()), then log &quot;Had WriteConflict in the middle of a multi-update, retrying the current update&quot;, then go back to the beginning of the while(1) loop in UpdateStage::work().&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eliot&quot; class=&quot;user-hover&quot; rel=&quot;eliot&quot;&gt;eliot&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaloian.manassiev&quot; class=&quot;user-hover&quot; rel=&quot;kaloian.manassiev&quot;&gt;kaloian.manassiev&lt;/a&gt;: one of you want to take it from here?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="57167" name="backtraces" size="31608" author="david.percy@mongodb.com" created="Fri, 14 Nov 2014 22:48:39 +0000"/>
                            <attachment id="57166" name="log" size="84700812" author="david.percy@mongodb.com" created="Fri, 14 Nov 2014 22:48:39 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 17 Nov 2014 20:58:43 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 12 weeks 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>
                            9 years, 12 weeks ago
                        </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>david.percy@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlisf:</customfieldvalue>

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

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

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