<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:39:03 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-35173] Add autocommit value to transaction sub-document of currentOp</title>
                <link>https://jira.mongodb.org/browse/SERVER-35173</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We want the &lt;tt&gt;currentOp&lt;/tt&gt; entry for both active and inactive transactions to contain an entry with a &lt;tt&gt;transaction.parameters&lt;/tt&gt; sub document that contains the &lt;tt&gt;autocommit&lt;/tt&gt; parameter for that transaction.&lt;/p&gt;

&lt;p&gt;For active transactions, we want to make sure that the &lt;tt&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/curop.cpp#L229-L275&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CurOp::reportCurrentOpForClient&lt;/a&gt;&lt;/tt&gt; method attaches this information to the appropriate sub-document, and for inactive transactions, we want to make sure that the &lt;tt&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/27d3642878e8efd88334957b339708f96daa1dbd/src/mongo/db/session.cpp#L1088-L1107&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Session::reportStashedState&lt;/a&gt;&lt;/tt&gt; method also attaches it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="547778">SERVER-35173</key>
            <summary>Add autocommit value to transaction sub-document of currentOp</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="jinny.byun">Jinny Byun</assignee>
                                    <reporter username="william.schultz@mongodb.com">William Schultz</reporter>
                        <labels>
                            <label>per-txn-metrics</label>
                    </labels>
                <created>Tue, 22 May 2018 19:36:41 +0000</created>
                <updated>Sun, 29 Oct 2023 22:31:30 +0000</updated>
                            <resolved>Thu, 5 Jul 2018 19:41:35 +0000</resolved>
                                                    <fixVersion>4.0.2</fixVersion>
                    <fixVersion>4.1.1</fixVersion>
                                    <component>Diagnostics</component>
                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1976439" author="xgen-internal-githook" created="Wed, 15 Aug 2018 15:22:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jinichu&apos;, &apos;email&apos;: &apos;jinnybyun@gmail.com&apos;, &apos;name&apos;: &apos;jinichu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35173&quot; title=&quot;Add autocommit value to transaction sub-document of currentOp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35173&quot;&gt;&lt;del&gt;SERVER-35173&lt;/del&gt;&lt;/a&gt; Added autocommit value to currentOp&apos;s transaction sub-document&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 1447252f5f44e4a2df4b7e38d4bdef0d88e526c4)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a9ae61e976af1fecbf0779a03f400d685e6e58f6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a9ae61e976af1fecbf0779a03f400d685e6e58f6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1939881" author="xgen-internal-githook" created="Thu, 5 Jul 2018 19:40:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jinichu&apos;, &apos;name&apos;: &apos;jinichu&apos;, &apos;email&apos;: &apos;jinnybyun@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35173&quot; title=&quot;Add autocommit value to transaction sub-document of currentOp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35173&quot;&gt;&lt;del&gt;SERVER-35173&lt;/del&gt;&lt;/a&gt; Added autocommit value to currentOp&apos;s transaction sub-document&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1447252f5f44e4a2df4b7e38d4bdef0d88e526c4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1447252f5f44e4a2df4b7e38d4bdef0d88e526c4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1933672" author="william.schultz" created="Thu, 28 Jun 2018 14:26:53 +0000"  >&lt;p&gt;This ticket has grown to include the addition of a &lt;tt&gt;Session::reportUnstashedState&lt;/tt&gt; method that gets called from &lt;tt&gt;PipelineD::MongoDInterface::_reportCurrentOpForClient&lt;/tt&gt;, and returns stats about an active transaction. This means that other tickets about adding transaction fields to currentOp for active transactions are now dependent on this ticket.&lt;/p&gt;</comment>
                            <comment id="1914315" author="william.schultz" created="Thu, 7 Jun 2018 20:27:09 +0000"  >&lt;p&gt;To access the &lt;tt&gt;autocommit&lt;/tt&gt; parameter for a transaction, we must access the &lt;tt&gt;Session&lt;/tt&gt; object. As it stands now, &lt;tt&gt;curop.cpp&lt;/tt&gt; is linked into mongos, and &lt;tt&gt;CurOp::reportCurrentOpForClient&lt;/tt&gt; is called both on mongod and mongos. The SessionCatalog and Session object don&apos;t exist on mongos, though. I think that for this ticket we should append the transaction specific parameters at the layer above, in &lt;tt&gt;PipelineD::MongoDInterface::_reportCurrentOpForClient&lt;/tt&gt;, which is mongod specific, where we should be able to access the SessionCatalog.&lt;/p&gt;</comment>
                            <comment id="1912748" author="william.schultz" created="Wed, 6 Jun 2018 18:23:51 +0000"  >&lt;p&gt;Note that the comment thread on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34692&quot; title=&quot;Move txnNumber in currentOp to subdocument&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34692&quot;&gt;&lt;del&gt;SERVER-34692&lt;/del&gt;&lt;/a&gt; indicates that it would be too confusing to duplicate the lsid at the top level of currentOp &lt;em&gt;and&lt;/em&gt; the transaction sub-document. Therefore, we are leaving lsid only at the top level currentOp output, where it already exists currently.&lt;/p&gt;</comment>
                            <comment id="1912741" author="william.schultz" created="Wed, 6 Jun 2018 18:20:14 +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; That was already done in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34692&quot; title=&quot;Move txnNumber in currentOp to subdocument&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34692&quot;&gt;&lt;del&gt;SERVER-34692&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1912518" author="tess.avitabile" created="Wed, 6 Jun 2018 15:34:26 +0000"  >&lt;p&gt;Should we also move the txnNumber into the sub-document as part of this work?&lt;/p&gt;</comment>
                            <comment id="1898805" author="milkie" created="Tue, 22 May 2018 20:02:01 +0000"  >&lt;p&gt;Perfect, thank you.&lt;/p&gt;</comment>
                            <comment id="1898774" author="william.schultz" created="Tue, 22 May 2018 19:43:56 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=milkie&quot; class=&quot;user-hover&quot; rel=&quot;milkie&quot;&gt;milkie&lt;/a&gt; I updated the description and title. Does this make more sense? The goal of the ticket is to move the lsid into the sub-document, and add the autocommit field.&lt;/p&gt;</comment>
                            <comment id="1898759" author="milkie" created="Tue, 22 May 2018 19:38:52 +0000"  >&lt;p&gt;I&apos;m not clear on what the work for this ticket will be.  Do we suspect that the code is currently incorrect?&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="547784">SERVER-35174</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="551896">SERVER-35302</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="552157">SERVER-35305</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="552172">SERVER-35310</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="555214">SERVER-35457</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="680286">DOCS-12405</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="568889">SERVER-36007</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="534618">SERVER-34692</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="547784">SERVER-35174</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>10.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_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>Tue, 22 May 2018 19:38:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 26 weeks 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, 26 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jinny.byun</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|htypv3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htpq2f:</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>
    <customfieldvalue id="2298">Repl 2018-07-02</customfieldvalue>
    <customfieldvalue id="2383">Repl 2018-07-16</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|htyc4f:</customfieldvalue>

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