<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:38:55 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-35129] Create a ServerTransactionsMetrics class and store it as a decoration on the ServiceContext</title>
                <link>https://jira.mongodb.org/browse/SERVER-35129</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;To store server-wide metrics on multi-document transactions, we need a class that will store these metrics and an instance of it that is globally accessible.  We will follow the same pattern used by the &lt;tt&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/9b6f404d30b944def9bcc77ebc8277fb97471080/src/mongo/db/retryable_writes_stats.h&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;RetryableWritesStats&lt;/a&gt;&lt;/tt&gt; class. We will create a &lt;tt&gt;ServerTransactionsMetrics&lt;/tt&gt; class and add it as a decoration on the &lt;tt&gt;ServiceContext&lt;/tt&gt;. This class should initially be just a skeleton, until we add member variables to track various metrics. We should also include a dummy &lt;tt&gt;void ServerTransactionsMetrics::updateStats(TransactionsStats* stats)&lt;/tt&gt; method, that mirrors the method of &lt;tt&gt;RetryableWritesStats&lt;/tt&gt;. Once we start to track metrics in this class, the &lt;tt&gt;updateStats&lt;/tt&gt; method will allow us to copy the stored metrics into a serializable &lt;tt&gt;TransactionStats&lt;/tt&gt; object, suitable for output in &lt;tt&gt;serverStatus&lt;/tt&gt;. &lt;/p&gt;

&lt;p&gt;As a part of this ticket, we can call &lt;tt&gt;ServerTransactionsMetrics::updateStats&lt;/tt&gt; from within &lt;tt&gt;TransactionsSSS::generateSection&lt;/tt&gt;, even though it will initially do nothing.&lt;/p&gt;</description>
                <environment></environment>
        <key id="547187">SERVER-35129</key>
            <summary>Create a ServerTransactionsMetrics class and store it as a decoration on the ServiceContext</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="nathan.louie">Nathan Louie</assignee>
                                    <reporter username="william.schultz@mongodb.com">William Schultz</reporter>
                        <labels>
                            <label>global-txn-metrics</label>
                    </labels>
                <created>Mon, 21 May 2018 17:55:20 +0000</created>
                <updated>Sun, 29 Oct 2023 22:31:35 +0000</updated>
                            <resolved>Fri, 8 Jun 2018 20:32:06 +0000</resolved>
                                                    <fixVersion>4.0.2</fixVersion>
                    <fixVersion>4.1.1</fixVersion>
                                    <component>Diagnostics</component>
                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1977925" author="xgen-internal-githook" created="Thu, 16 Aug 2018 20:22:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;nxlouie&apos;, &apos;email&apos;: &apos;nxlouie@umich.edu&apos;, &apos;name&apos;: &apos;Nathan Louie&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35129&quot; title=&quot;Create a ServerTransactionsMetrics class and store it as a decoration on the ServiceContext&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35129&quot;&gt;&lt;del&gt;SERVER-35129&lt;/del&gt;&lt;/a&gt; Create a ServerTransactionsMetrics class and store it as a decoration on the ServiceContext&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 77fdba110d24da099a73b46b16f1f3a5ab8ed849)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9a7d4ef8543557347ef87e8f73b66e9d644569bd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9a7d4ef8543557347ef87e8f73b66e9d644569bd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1915616" author="xgen-internal-githook" created="Fri, 8 Jun 2018 19:39:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;nxlouie&apos;, &apos;name&apos;: &apos;Nathan Louie&apos;, &apos;email&apos;: &apos;nxlouie@umich.edu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35129&quot; title=&quot;Create a ServerTransactionsMetrics class and store it as a decoration on the ServiceContext&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35129&quot;&gt;&lt;del&gt;SERVER-35129&lt;/del&gt;&lt;/a&gt; Create a ServerTransactionsMetrics class and store it as a decoration on the ServiceContext&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/77fdba110d24da099a73b46b16f1f3a5ab8ed849&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/77fdba110d24da099a73b46b16f1f3a5ab8ed849&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1914279" author="william.schultz" created="Thu, 7 Jun 2018 20:03:35 +0000"  >&lt;p&gt;We&apos;ve decided to rename the class from &lt;tt&gt;MultiDocumentTransactionsStats&lt;/tt&gt; to &lt;tt&gt;ServerTransactionsMetrics&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="1912935" author="william.schultz" created="Wed, 6 Jun 2018 20:21:41 +0000"  >&lt;p&gt;Fair enough. Jinny just committed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35126&quot; title=&quot;Create TxnStats class and store it on the Session&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35126&quot;&gt;&lt;del&gt;SERVER-35126&lt;/del&gt;&lt;/a&gt;, so it&apos;s probably not worth changing it at this point, but I will keep that in mind going forward.&lt;/p&gt;</comment>
                            <comment id="1912928" author="spencer" created="Wed, 6 Jun 2018 20:14:05 +0000"  >&lt;p&gt;FWIW I&apos;m in favor of full names over inconsistent abbreviations, so I&apos;d vote for TransactionStats over TxnStats.&lt;/p&gt;</comment>
                            <comment id="1912927" author="william.schultz" created="Wed, 6 Jun 2018 20:14:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tess.avitabile&quot; class=&quot;user-hover&quot; rel=&quot;tess.avitabile&quot;&gt;tess.avitabile&lt;/a&gt; We can do that as part of this ticket. I didn&apos;t call it out explicitly but I think I expected we would also add a call to the dummy function after we added it. I added a note in the description.&lt;/p&gt;</comment>
                            <comment id="1912919" author="william.schultz" created="Wed, 6 Jun 2018 20:10:15 +0000"  >&lt;p&gt;There&apos;s no real significance. We aren&apos;t very consistent with the &quot;txn&quot; vs &quot;transaction&quot; naming convention throughout the codebase so it&apos;s not that important to me at this point. I think I decided on &quot;MultiDocumentTransactionsStats&quot; because the &quot;TransactionsStats&quot; IDL type and &quot;TransactionsSSS&quot; class already used that convention and it will be used in conjunction with that.&lt;/p&gt;</comment>
                            <comment id="1912834" author="nathan.louie" created="Wed, 6 Jun 2018 19:21:15 +0000"  >&lt;p&gt;What is the significance of writing out the word &quot;Transactions&quot; in this class, while the per-transaction stats class is called &quot;TxnStats&quot;?&lt;/p&gt;</comment>
                            <comment id="1912534" author="tess.avitabile" created="Wed, 6 Jun 2018 15:50:51 +0000"  >&lt;p&gt;In what ticket will we start calling &lt;tt&gt;MultiDocumentTransactionsStats::updateStats()&lt;/tt&gt; from &lt;tt&gt;TransactionSSS&lt;/tt&gt;?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="547565">SERVER-35146</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="547566">SERVER-35147</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="547604">SERVER-35149</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="547612">SERVER-35151</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>9.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="15640"><![CDATA[v4.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>Wed, 6 Jun 2018 15:50:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 25 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1091</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, 25 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>nathan.louie</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
            <customfieldvalue>tess.avitabile@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|htym7z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htpm8n:</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="2297">Repl 2018-06-18</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|hty8hb:</customfieldvalue>

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