<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:29:29 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-52956] Add storage debug method to dump system-wide RecoveryUnit/transaction state</title>
                <link>https://jira.mongodb.org/browse/SERVER-52956</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;There are a couple ways of going about this.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Expose methods in &lt;a href=&quot;https://github.com/wiredtiger/wiredtiger/blob/9b32813d625d3dbdf0fd83a7eb4ce10fda0d18f3/dist/api_data.py#L1524-L1525&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;WT&lt;/a&gt; that dumps its internal state.&lt;/li&gt;
	&lt;li&gt;Have MDB walk Clients-&amp;gt;OpCtx-&amp;gt;RecoveryUnits&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The latter is advantageous because it&apos;s easier to connect an OpCtx with what it was doing than a pointer to a WT session.&lt;/p&gt;

&lt;p&gt;However, there are some gaps with walking MDB&apos;s tree. It&apos;s uncommon, but possible for recovery units to become detached as part of a &quot;side transaction&quot;. They&apos;re temporarily stored as function locals and otherwise unable to be discovered by traversing memory structures.&lt;/p&gt;

&lt;p&gt;If WT_CONNECTION::debug_info returned a structure, we might be able to get the best of both worlds by linking up a WT session with an OpCtx and be able to surface the dangling transactions.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1547107">SERVER-52956</key>
            <summary>Add storage debug method to dump system-wide RecoveryUnit/transaction state</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="backlog-server-execution">Backlog - Storage Execution Team</assignee>
                                    <reporter username="daniel.gottlieb@mongodb.com">Daniel Gottlieb</reporter>
                        <labels>
                    </labels>
                <created>Fri, 20 Nov 2020 03:18:54 +0000</created>
                <updated>Tue, 6 Dec 2022 01:43:53 +0000</updated>
                            <resolved>Wed, 6 Jan 2021 04:22:55 +0000</resolved>
                                                                    <component>Storage</component>
                                        <votes>1</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="3550055" author="daniel.gottlieb@10gen.com" created="Wed, 6 Jan 2021 04:22:36 +0000"  >&lt;p&gt;Hm, that existing GDB function may be sufficient. Apologies for forgetting that existed. If we wanted to be thorough, maybe we could run it against the coredumps from the linked tickets to see if it met our needs, but I don&apos;t think performing that is necessary. Closing this as a dup of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45556&quot; title=&quot;Create GDB pretty printer to dump all active RecoveryUnits&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45556&quot;&gt;&lt;del&gt;SERVER-45556&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3549694" author="louis.williams" created="Tue, 5 Jan 2021 21:08:22 +0000"  >&lt;p&gt;The &lt;tt&gt;mongodb-dump-recovery-units&lt;/tt&gt;&#160;GDB helper&#160;already implements Dan&apos;s second suggested solution. See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45556&quot; title=&quot;Create GDB pretty printer to dump all active RecoveryUnits&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45556&quot;&gt;&lt;del&gt;SERVER-45556&lt;/del&gt;&lt;/a&gt;. It walks all Clients and dumps the RecoveryUnit state. As he pointed out, this will not report every active transaction, however.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=daniel.gottlieb&quot; class=&quot;user-hover&quot; rel=&quot;daniel.gottlieb&quot;&gt;daniel.gottlieb&lt;/a&gt;, is there functionality missing from the existing GDB helper that would have helped diagnose &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-52623&quot; title=&quot;Aborting in-progress transactions on step-up with eMRC=off can set the stable timestamp ahead of the all durable timestamp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-52623&quot;&gt;SERVER-52623&lt;/a&gt; that what you&apos;ve requested with this ticket?&lt;/p&gt;

&lt;p&gt;Otherwise, this ticket is dependent on support from a WiredTiger API call.&#160;We would add support to dump all active&#160; WiredTiger transactions, not just those in use by MongoDB Clients.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3547936" author="daniel.gottlieb@10gen.com" created="Mon, 4 Jan 2021 22:04:26 +0000"  >&lt;p&gt;I imagined this would be a function that gdb attached to a running process could call, similar to dumping the lock state. Hopefully in that context, there&apos;d be an opportunity to grab the global exclusive lock.&lt;/p&gt;</comment>
                            <comment id="3547509" author="connie.chen" created="Mon, 4 Jan 2021 19:12:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=daniel.gottlieb&quot; class=&quot;user-hover&quot; rel=&quot;daniel.gottlieb&quot;&gt;daniel.gottlieb&lt;/a&gt;&#160;When would we want to call this/use this? How would we avoid extra synchronization?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1089932">SERVER-45556</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1915045">SERVER-61177</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1533699">SERVER-52623</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="418546">WT-3529</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>4.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>Thu, 3 Dec 2020 19:37:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 5 weeks, 1 day 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 5 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-execution</customfieldvalue>
            <customfieldvalue>connie.chen@mongodb.com</customfieldvalue>
            <customfieldvalue>daniel.gottlieb@mongodb.com</customfieldvalue>
            <customfieldvalue>louis.williams@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hyi833:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hy487r:</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_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|hyhucf:</customfieldvalue>

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