<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:59:47 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-42175] WiredTigerRecordStore::reclaimOplog can block for extended periods of time</title>
                <link>https://jira.mongodb.org/browse/SERVER-42175</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In the case where we&apos;re truncating a very large amount of oplog entries, WiredTigerRecordStore::reclaimOplog may hold its locks (Global IX since 3.6, DB/Collection IX for the oplog in 3.4) for an extended period of time, blocking operations such as stepdown which may require a global X lock.&lt;/p&gt;

&lt;p&gt;One potential solution to this problem is for reclaimOplog to yield all locks periodically.&lt;/p&gt;</description>
                <environment></environment>
        <key id="854000">SERVER-42175</key>
            <summary>WiredTigerRecordStore::reclaimOplog can block for extended periods of time</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="13203">Gone away</resolution>
                                        <assignee username="backlog-server-execution">Backlog - Storage Execution Team</assignee>
                                    <reporter username="matthew.russotto@mongodb.com">Matthew Russotto</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Jul 2019 19:43:52 +0000</created>
                <updated>Fri, 27 Oct 2023 20:42:47 +0000</updated>
                            <resolved>Mon, 3 Feb 2020 14:15:37 +0000</resolved>
                                    <version>3.4.3</version>
                    <version>3.6.3</version>
                                                    <component>Replication</component>
                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>17</watches>
                                                                                                                <comments>
                            <comment id="2777961" author="geert.bosch" created="Fri, 31 Jan 2020 22:21:32 +0000"  >&lt;p&gt;Given that we believe this to be fixed, shall we close this ticket?&lt;/p&gt;</comment>
                            <comment id="2426513" author="maria.vankeulen" created="Fri, 20 Sep 2019 15:41:48 +0000"  >&lt;p&gt;Given the performance improvements to oplog truncation in &lt;a href=&quot;https://jira.mongodb.org/browse/WT-4011&quot; title=&quot;Checkpoint should not read truncated pages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-4011&quot;&gt;&lt;del&gt;WT-4011&lt;/del&gt;&lt;/a&gt;, we do not have reason to believe that the issue described in this ticket is still a problem after 3.6.4. The tracking tools added in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-43322&quot; title=&quot;Add tracking tools for measuring OplogStones performance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-43322&quot;&gt;&lt;del&gt;SERVER-43322&lt;/del&gt;&lt;/a&gt; will help us determine whether there are still issues to investigate. &lt;/p&gt;

&lt;p&gt;I am putting this ticket back in Needs Scheduling for it to be triaged as a pre-3.6.4 issue. We will file additional tickets as necessary if there are issues post-3.6.4.&lt;/p&gt;</comment>
                            <comment id="2421450" author="maria.vankeulen" created="Mon, 16 Sep 2019 14:48:44 +0000"  >&lt;p&gt;This issue may be the root cause of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30727&quot; title=&quot;Secondary stuck in loop of current election&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30727&quot;&gt;&lt;del&gt;SERVER-30727&lt;/del&gt;&lt;/a&gt;, so I am marking them as related. This ticket is specific to 3.4 and releases prior to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34129&quot; title=&quot;Don&amp;#39;t hold database or collection locks during oplog truncation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34129&quot;&gt;&lt;del&gt;SERVER-34129&lt;/del&gt;&lt;/a&gt;, since it pertains to reclaimOplog holding an IX lock on &quot;local&quot;.&lt;/p&gt;</comment>
                            <comment id="2419636" author="maria.vankeulen" created="Fri, 13 Sep 2019 15:23:40 +0000"  >&lt;p&gt;Putting this ticket on hold in favor of doing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-43322&quot; title=&quot;Add tracking tools for measuring OplogStones performance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-43322&quot;&gt;&lt;del&gt;SERVER-43322&lt;/del&gt;&lt;/a&gt;, since &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-43322&quot; title=&quot;Add tracking tools for measuring OplogStones performance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-43322&quot;&gt;&lt;del&gt;SERVER-43322&lt;/del&gt;&lt;/a&gt; will give us data on how to best proceed.&lt;/p&gt;</comment>
                            <comment id="2411427" author="maria.vankeulen" created="Fri, 6 Sep 2019 20:44:25 +0000"  >&lt;p&gt;Per the discussions in&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34129&quot; title=&quot;Don&amp;#39;t hold database or collection locks during oplog truncation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34129&quot;&gt;&lt;del&gt;SERVER-34129&lt;/del&gt;&lt;/a&gt;, we want to make sure that&#160;restartCatalog still conflicts with oplog truncation, so yielding all locks during oplog truncation is tricky.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=geert.bosch&quot; class=&quot;user-hover&quot; rel=&quot;geert.bosch&quot;&gt;geert.bosch&lt;/a&gt; and I brainstormed alternate solutions to this issue, among which being to have a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/acc9ea33e6a1a81dc1a2b86afa0a2e808f91a20d/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp#L172&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;larger total number of oplog stones&lt;/a&gt; when the oplog is &lt;a href=&quot;https://github.com/mongodb/mongo/blob/acc9ea33e6a1a81dc1a2b86afa0a2e808f91a20d/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp#L317-L318&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;very large&lt;/a&gt;. This way, individual stones will be smaller, so truncating the contents of one stone would not necessitate holding the global IX lock for as long. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="417750">SERVER-30727</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="926202">SERVER-43322</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="521598">WT-4011</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="516626">SERVER-34129</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>5.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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25136"><![CDATA[Storage Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 6 Sep 2019 20:44:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 1 week, 5 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 1 week, 5 days 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>backlog-server-execution</customfieldvalue>
            <customfieldvalue>geert.bosch@mongodb.com</customfieldvalue>
            <customfieldvalue>maria.vankeulen@mongodb.com</customfieldvalue>
            <customfieldvalue>matthew.russotto@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvdu7r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr64lz:</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="3210">Execution Team 2019-09-09</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|hvdgh3:</customfieldvalue>

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