<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:43:17 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-36501] serverStatus support for prepared transactions</title>
                <link>https://jira.mongodb.org/browse/SERVER-36501</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Similar to the transactions diagnostics project, we want to maintain certain metrics in the serverStatus section. The &lt;tt&gt;TransactionsSSS::generateSection&lt;/tt&gt; method returns a BSON object that goes into the &lt;tt&gt;transactions&lt;/tt&gt; section of the &lt;tt&gt;serverStatus&lt;/tt&gt; output.&lt;/p&gt;

&lt;p&gt;This ticket can be split into multiple commits if needed. We will want to output:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the total number of prepared transactions&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the total number of committed prepared transactions&lt;/li&gt;
	&lt;li&gt;the total number of aborted prepared transactions&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;We will need to add these counters to ServerTransactionMetrics and the &lt;tt&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/4cee07d8a97bb0663e7bfbc3f2e1fbf539140adf/src/mongo/db/transactions_stats.idl&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;transactions_stats.idl&lt;/a&gt;&lt;/tt&gt; class, so that we can serialize these counters to the serverStatus output object in the &lt;tt&gt;TransactionsSSS::generateSection&lt;/tt&gt; method.&lt;/p&gt;

&lt;p&gt;We will also update the TransactionMetricsObserver to increment/decrement the stats when appropriate.&lt;/p&gt;</description>
                <environment></environment>
        <key id="585024">SERVER-36501</key>
            <summary>serverStatus support for prepared transactions</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="jason.chan@mongodb.com">Jason Chan</assignee>
                                    <reporter username="judah.schvimer@mongodb.com">Judah Schvimer</reporter>
                        <labels>
                            <label>prepare_diagnostics</label>
                    </labels>
                <created>Tue, 7 Aug 2018 17:02:17 +0000</created>
                <updated>Sun, 29 Oct 2023 22:29:11 +0000</updated>
                            <resolved>Tue, 6 Nov 2018 14:37:04 +0000</resolved>
                                                    <fixVersion>4.1.5</fixVersion>
                                    <component>Diagnostics</component>
                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="2053082" author="xgen-internal-githook" created="Tue, 6 Nov 2018 14:36:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jason Chan&apos;, &apos;email&apos;: &apos;jason.chan@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36501&quot; title=&quot;serverStatus support for prepared transactions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36501&quot;&gt;&lt;del&gt;SERVER-36501&lt;/del&gt;&lt;/a&gt; Add &apos;currentPrepared&apos; metric to serverStatus&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a090ee789498e709eef4c2d28bc1326070c1e67a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a090ee789498e709eef4c2d28bc1326070c1e67a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2049441" author="xgen-internal-githook" created="Thu, 1 Nov 2018 20:30:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jason Chan&apos;, &apos;email&apos;: &apos;jason.chan@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36501&quot; title=&quot;serverStatus support for prepared transactions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36501&quot;&gt;&lt;del&gt;SERVER-36501&lt;/del&gt;&lt;/a&gt; Remove unused variables in prepared txns metrics unittests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/838700e1eaa85123cf595317e0f30a1a35cc613b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/838700e1eaa85123cf595317e0f30a1a35cc613b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2048933" author="xgen-internal-githook" created="Thu, 1 Nov 2018 14:58:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jason Chan&apos;, &apos;email&apos;: &apos;jason.chan@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36501&quot; title=&quot;serverStatus support for prepared transactions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36501&quot;&gt;&lt;del&gt;SERVER-36501&lt;/del&gt;&lt;/a&gt; Add getPreparedDuration metric reporting&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7ef6831a7470ec9ad85b7c4064a22d762be1d2b8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7ef6831a7470ec9ad85b7c4064a22d762be1d2b8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2048932" author="xgen-internal-githook" created="Thu, 1 Nov 2018 14:58:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jason Chan&apos;, &apos;email&apos;: &apos;jason.chan@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36501&quot; title=&quot;serverStatus support for prepared transactions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36501&quot;&gt;&lt;del&gt;SERVER-36501&lt;/del&gt;&lt;/a&gt; serverStatus support for prepared transactions&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/970b1de0ec350ec5487fb230391c7bae33dd0fc2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/970b1de0ec350ec5487fb230391c7bae33dd0fc2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2036149" author="judah.schvimer" created="Fri, 19 Oct 2018 17:15:43 +0000"  >&lt;p&gt;Great, I agree with Will. Also can this ticket please add the &quot;oldest active transaction timestamp&quot; (from &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35873&quot; title=&quot;Maintain the oldest oplog entry timestamp of any active transaction&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35873&quot;&gt;&lt;del&gt;SERVER-35873&lt;/del&gt;&lt;/a&gt;) to server status? I don&apos;t think it&apos;s currently included.&lt;/p&gt;</comment>
                            <comment id="2036068" author="pavithra.vetriselvan" created="Fri, 19 Oct 2018 16:23:51 +0000"  >&lt;p&gt;I agree with Will that it&apos;d be nice to keep the naming consistent between 4.0 and 4.2. So would mean that the existing fields (currentActive, currentOpen, etc) would encompass prepared and unprepared transactions? &lt;/p&gt;</comment>
                            <comment id="2035899" author="william.schultz" created="Fri, 19 Oct 2018 14:43:49 +0000"  >&lt;p&gt;For sake of consistency between 4.0 and 4.2, I don&apos;t think we should change the existing metrics. For example, if someone is using a 4.2 replica set to run non-sharded transactions, I feel that it would be nice if the metrics appear the same as in 4.0 (ignoring any added fields). The definition of &lt;tt&gt;totalCommitted&lt;/tt&gt; can remain the same, and &lt;tt&gt;totalPreparedAndThenCommitted&lt;/tt&gt; will assume the new, appropriate meaning. Like you said, you can derive the value of &lt;tt&gt;totalUnpreparedAndThenCommitted&lt;/tt&gt; from the other two.&lt;/p&gt;

&lt;p&gt;Alternatively, we could have 3 fields: &lt;tt&gt;totalCommitted&lt;/tt&gt;, &lt;tt&gt;totalPreparedAndThenCommitted&lt;/tt&gt;, &lt;tt&gt;totalUnpreparedAndThenCommitted&lt;/tt&gt;, but that feels a bit overkill.&lt;/p&gt;</comment>
                            <comment id="2035878" author="judah.schvimer" created="Fri, 19 Oct 2018 14:31:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pavithra.vetriselvan&quot; class=&quot;user-hover&quot; rel=&quot;pavithra.vetriselvan&quot;&gt;pavithra.vetriselvan&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jason.chan&quot; class=&quot;user-hover&quot; rel=&quot;jason.chan&quot;&gt;jason.chan&lt;/a&gt;, do you think we want to change the current metrics to &quot;committed unprepared transactions&quot; etc., or just have readers do subtraction if they care? CC &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=william.schultz&quot; class=&quot;user-hover&quot; rel=&quot;william.schultz&quot;&gt;william.schultz&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kelsey.schubert&quot; class=&quot;user-hover&quot; rel=&quot;kelsey.schubert&quot;&gt;kelsey.schubert&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2024037" author="judah.schvimer" created="Thu, 4 Oct 2018 17:57:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pavithra.vetriselvan&quot; class=&quot;user-hover&quot; rel=&quot;pavithra.vetriselvan&quot;&gt;pavithra.vetriselvan&lt;/a&gt;, can you please fill the description of this ticket in with what work needs to be done?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="584984">SERVER-36489</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="630466">DOCS-12189</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</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>Fri, 19 Oct 2018 14:43:49 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 14 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1032</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>
                            5 years, 14 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jason.chan@mongodb.com</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
            <customfieldvalue>pavithra.vetriselvan@mongodb.com</customfieldvalue>
            <customfieldvalue>william.schultz@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu4xof:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htvjhr:</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="2542">Repl 2018-10-22</customfieldvalue>
    <customfieldvalue id="2543">Repl 2018-11-05</customfieldvalue>
    <customfieldvalue id="2605">Repl 2018-11-19</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|hu4jxr:</customfieldvalue>

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