<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:57:38 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-41409] Expose the oldest active transaction timestamp in replSetGetStatus with an option</title>
                <link>https://jira.mongodb.org/browse/SERVER-41409</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Tools can get the oldest active transaction timestamp by a query on &quot;config.transactions&quot;, but it&apos;s clearer to expose that timestamp in replSetGetStatus. Since we want to avoid table scan in replSetGetStatus, the value should be gated by an option, like the &quot;initialSync&quot; option.&lt;/p&gt;</description>
                <environment></environment>
        <key id="783279">SERVER-41409</key>
            <summary>Expose the oldest active transaction timestamp in replSetGetStatus with an option</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="siyuan.zhou@mongodb.com">Siyuan Zhou</assignee>
                                    <reporter username="siyuan.zhou@mongodb.com">Siyuan Zhou</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 May 2019 19:45:52 +0000</created>
                <updated>Thu, 6 Jun 2019 23:04:08 +0000</updated>
                            <resolved>Thu, 6 Jun 2019 23:04:08 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2274568" author="david.golden" created="Thu, 6 Jun 2019 19:04:12 +0000"  >&lt;p&gt;I&apos;ll need to know the relevant fields for the table, but I think you can close this ticket.&lt;/p&gt;</comment>
                            <comment id="2271499" author="siyuan.zhou@10gen.com" created="Tue, 4 Jun 2019 22:28:05 +0000"  >&lt;p&gt;It&apos;s not documented. &lt;a href=&quot;https://github.com/mongodb/mongo/blob/94a51a07190a945e41166c0987a04227ab5f18f2/src/mongo/db/repl/initial_syncer.cpp#L657-L667&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Here&lt;/a&gt; is the query initial sync uses for that.&lt;/p&gt;</comment>
                            <comment id="2269872" author="david.golden" created="Tue, 4 Jun 2019 01:52:50 +0000"  >&lt;p&gt;Unless we can add a new command for this, I think for expediency we&apos;ll need to have tools scan the config.transaction table.  Could you please point me to documentation for what exactly we need to do to extract the proper value?&lt;/p&gt;</comment>
                            <comment id="2269347" author="siyuan.zhou@10gen.com" created="Mon, 3 Jun 2019 18:47:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.golden&quot; class=&quot;user-hover&quot; rel=&quot;david.golden&quot;&gt;david.golden&lt;/a&gt;, the documentation only mentioned 3 actions available on the cluster resource. None of them can expose the oldest active transaction timestamp. Do you think it makes sense to allow backup role on replSetGetStatus? If so, we can ask Security team to weigh in.&lt;/p&gt;</comment>
                            <comment id="2266625" author="david.golden" created="Fri, 31 May 2019 14:47:12 +0000"  >&lt;p&gt;From what I can tell, the &apos;backup&apos; role does allow querying &apos;config.transactions&apos;.&lt;/p&gt;</comment>
                            <comment id="2265915" author="siyuan.zhou@10gen.com" created="Thu, 30 May 2019 20:02:32 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.golden&quot; class=&quot;user-hover&quot; rel=&quot;david.golden&quot;&gt;david.golden&lt;/a&gt;, that&apos;s a good catch! Do tools have the privilege to read &quot;config.transactions&quot;? The doc doesn&apos;t mention that. Adding&#160;replSetGetStatus to backup role also sounds an option.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Provides the insert and update actions on the mms.backup collection in the admin database and on the settings collection in the config database.&lt;/p&gt;

&lt;p&gt;On the cluster as a whole, provides the&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;appendOplogNote&lt;/li&gt;
	&lt;li&gt;getParameter&lt;/li&gt;
	&lt;li&gt;listDatabases&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Provides the find action on the following:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;all non-system collections in the cluster, including those in the config and local databases&lt;/li&gt;
	&lt;li&gt;The following system collections in the cluster: system.indexes, system.namespaces, system.js, and system.profile&lt;/li&gt;
	&lt;li&gt;the admin.system.users and admin.system.roles collections&lt;/li&gt;
	&lt;li&gt;the config.settings collection&lt;/li&gt;
	&lt;li&gt;legacy system.users collections from versions of MongoDB prior to 2.6&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Provides the insert and update actions on the config.settings collection.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="2265894" author="david.golden" created="Thu, 30 May 2019 19:53:40 +0000"  >&lt;p&gt;Is there a way we can expose this via something that only requires the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/built-in-roles/#backup&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;backup&lt;/a&gt; role instead of &lt;a href=&quot;https://docs.mongodb.com/manual/reference/built-in-roles/#clusterManager&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;clusterManager&lt;/a&gt;?  If not, then I suggest closing this ticket and tools will scan config.transactions.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="702888">TOOLS-2225</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="791791">TOOLS-2304</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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 30 May 2019 19:53:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 35 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_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>siyuan.zhou@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 35 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.golden@mongodb.com</customfieldvalue>
            <customfieldvalue>siyuan.zhou@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hv224f:</customfieldvalue>

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

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