<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:19:56 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-49468] Invalidate previous OperationContext when a new OperationContext is created</title>
                <link>https://jira.mongodb.org/browse/SERVER-49468</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have an aggressive invariant &lt;a href=&quot;https://github.com/mongodb/mongo/blob/c957403d177c8b83c3d3693b29d7af73f34ffdfc/src/mongo/db/client.cpp#L126&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. This means that we crash the server whenever we attempt to replace an &lt;tt&gt;OperationContext&lt;/tt&gt; instead of explicitly destroying and then recreating. We can keep that invariant in test environments. In production, I believe we should interrupt the previous &lt;tt&gt;OperationContext&lt;/tt&gt; to produce an &lt;tt&gt;AssertionError&lt;/tt&gt;. We should probably also log and emit an exception at the call site to make sure we don&apos;t end up in an unsatisfiable wait. &lt;/p&gt;</description>
                <environment></environment>
        <key id="1407903">SERVER-49468</key>
            <summary>Invalidate previous OperationContext when a new OperationContext is created</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="ben.caimano@mongodb.com">Benjamin Caimano</assignee>
                                    <reporter username="ben.caimano@mongodb.com">Benjamin Caimano</reporter>
                        <labels>
                            <label>servicearch-wfbf-day</label>
                    </labels>
                <created>Mon, 13 Jul 2020 15:11:31 +0000</created>
                <updated>Sun, 29 Oct 2023 22:05:52 +0000</updated>
                            <resolved>Tue, 9 Mar 2021 15:41:18 +0000</resolved>
                                                    <fixVersion>4.9.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>16</watches>
                                                                                                                <comments>
                            <comment id="3695650" author="JIRAUSER1258313" created="Thu, 1 Apr 2021 07:48:41 +0000"  >&lt;p&gt;Awesome, can&apos;t wait for 4.4.5 then, thanks.&lt;/p&gt;</comment>
                            <comment id="3695641" author="billy.donahue" created="Thu, 1 Apr 2021 07:27:54 +0000"  >&lt;p&gt;Lucas,&lt;/p&gt;

&lt;p&gt;The root cause of the problems you&apos;re referring to has been identified and fixed by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53566&quot; title=&quot;Investigate and reproduce &amp;quot;opCtx != nullptr &amp;amp;&amp;amp; _opCtx == nullptr&amp;quot; invariant&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53566&quot;&gt;&lt;del&gt;SERVER-53566&lt;/del&gt;&lt;/a&gt;, which has been backported and is indeed expected to be included in the upcoming 4.4.5 release.&lt;/p&gt;

&lt;p&gt;This ticket here represents an earlier defensive and diagnostic measure, implemented before the counter overflow was identified as the root cause.&lt;/p&gt;</comment>
                            <comment id="3695616" author="JIRAUSER1258313" created="Thu, 1 Apr 2021 06:16:36 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Just a reminder that we still can&apos;t touch the replicaSet to remove or add mebmers, or it crashes completely, and servers crash anyway after 20 days. How is that marked as &quot;FIXED&quot;? Why are you refusing to fix this bug in 4.4? I fail to see how you&apos;re keeping 4.4 &quot;as stable as possible&quot; with a bug that paralyses cluster operations.&lt;/p&gt;</comment>
                            <comment id="3654558" author="xgen-internal-githook" created="Tue, 9 Mar 2021 15:40:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Judah Schvimer&apos;, &apos;email&apos;: &apos;judah@mongodb.com&apos;, &apos;username&apos;: &apos;judahschvimer&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49468&quot; title=&quot;Invalidate previous OperationContext when a new OperationContext is created&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49468&quot;&gt;&lt;del&gt;SERVER-49468&lt;/del&gt;&lt;/a&gt; Kill and throw when OperationContexts are overwritten&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit d1478455494a1d8b4a5ceec91eb4983f118a45b4.&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ca84ce1f36dae35cb433b578c1f04283586c093e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ca84ce1f36dae35cb433b578c1f04283586c093e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3654476" author="judah.schvimer" created="Tue, 9 Mar 2021 15:09:55 +0000"  >&lt;p&gt;To keep the 4.4 branch as stable as possible, and since there is ongoing discussion about the best way forward on this ticket, I will be reverting the 4.4 fix until we&apos;ve gained consensus.&lt;/p&gt;</comment>
                            <comment id="3653144" author="xgen-internal-githook" created="Mon, 8 Mar 2021 21:21:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ben Caimano&apos;, &apos;email&apos;: &apos;ben.caimano@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49468&quot; title=&quot;Invalidate previous OperationContext when a new OperationContext is created&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49468&quot;&gt;&lt;del&gt;SERVER-49468&lt;/del&gt;&lt;/a&gt; Kill and throw when OperationContexts are overwritten&lt;/p&gt;

&lt;p&gt;(cherry picked from commit b7cf8fbfcc547015f7fcd8521f4890b8ee8598f6)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d1478455494a1d8b4a5ceec91eb4983f118a45b4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d1478455494a1d8b4a5ceec91eb4983f118a45b4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3652579" author="JIRAUSER1254842" created="Mon, 8 Mar 2021 18:07:41 +0000"  >&lt;p&gt;There is conclusion on #&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53566&quot; title=&quot;Investigate and reproduce &amp;quot;opCtx != nullptr &amp;amp;&amp;amp; _opCtx == nullptr&amp;quot; invariant&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53566&quot;&gt;&lt;del&gt;SERVER-53566&lt;/del&gt;&lt;/a&gt; about source of issue and the way to fix it.&lt;/p&gt;</comment>
                            <comment id="3652283" author="ben.caimano" created="Mon, 8 Mar 2021 16:37:57 +0000"  >&lt;p&gt;Thanks for the poke, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sz&quot; class=&quot;user-hover&quot; rel=&quot;sz&quot;&gt;sz&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lucas%40lichess.org&quot; class=&quot;user-hover&quot; rel=&quot;lucas@lichess.org&quot;&gt;lucas@lichess.org&lt;/a&gt;. I&apos;d left this on the backlog for our architecture team but it seems that it needs to be better prioritized. I&apos;ll attempt to get it backported for r4.4.5.&lt;/p&gt;</comment>
                            <comment id="3651372" author="JIRAUSER1258313" created="Mon, 8 Mar 2021 07:22:40 +0000"  >&lt;p&gt;Indeed our two crashes are 20 days apart here too. That&apos;s not a long uptime for a db server...&lt;/p&gt;</comment>
                            <comment id="3651371" author="sz" created="Mon, 8 Mar 2021 07:18:23 +0000"  >&lt;p&gt;@Lucas, our clusters have crushed after exactly 20 days of uptime and it looks like it linked to this constant: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r4.4.3/src/mongo/db/keys_collection_manager.cpp#L62&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/r4.4.3/src/mongo/db/keys_collection_manager.cpp#L62&lt;/a&gt; because invariant failure occured in KeysCollectionManager:: PeriodicRunner thread.&lt;/p&gt;</comment>
                            <comment id="3651369" author="JIRAUSER1258313" created="Mon, 8 Mar 2021 07:07:53 +0000"  >&lt;p&gt;I second this, we&apos;re now on our second cluster-wide crash with no warning after weeks of uptime and zero action during the crash... With this issue the mongodb cluster went from something we did not worry about to something that might suddenly crash (and potentially lose data) without notice or change in app behaviour.&lt;/p&gt;</comment>
                            <comment id="3651080" author="sz" created="Sun, 7 Mar 2021 10:04:03 +0000"  >&lt;p&gt;@Benjamin Caimano, we&apos;re in a desperate need of backporting this to next release of 4.4. We experience crushing cascade on our production sharded clusters.&lt;/p&gt;</comment>
                            <comment id="3616434" author="JIRAUSER1254842" created="Mon, 15 Feb 2021 23:34:02 +0000"  >&lt;p&gt;Heavily upvote for backporting to 4.4&lt;/p&gt;

&lt;p&gt;Today I&apos;ve set featureCompatibilityVersion on several sharded clusters. Almost every shard replicaset did crashed with this error. Sometimes all 3 replicas simultaneously, sometimes only master. Reading it will possibly happen with dropIndex and stepDown makes me nervous.&lt;/p&gt;</comment>
                            <comment id="3504242" author="xgen-internal-githook" created="Tue, 24 Nov 2020 20:09:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ben Caimano&apos;, &apos;email&apos;: &apos;ben.caimano@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49468&quot; title=&quot;Invalidate previous OperationContext when a new OperationContext is created&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49468&quot;&gt;&lt;del&gt;SERVER-49468&lt;/del&gt;&lt;/a&gt; Kill and throw when OperationContexts are overwritten&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b7cf8fbfcc547015f7fcd8521f4890b8ee8598f6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b7cf8fbfcc547015f7fcd8521f4890b8ee8598f6&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1592961">SERVER-53857</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1580342">SERVER-53566</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 24 Nov 2020 20:09:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 44 weeks, 6 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 44 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ben.caimano@mongodb.com</customfieldvalue>
            <customfieldvalue>billy.donahue@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
            <customfieldvalue>lucas@lichess.org</customfieldvalue>
            <customfieldvalue>sz</customfieldvalue>
            <customfieldvalue>funny.falcon@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxukpr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr9f7z:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4272">Service arch 2020-11-30</customfieldvalue>

                        </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|hxu6z3:</customfieldvalue>

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