<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:15:52 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-70322] BalancerStatsRegistry inappropriately constructs ResourceId outside ResourceIdFactory</title>
                <link>https://jira.mongodb.org/browse/SERVER-70322</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Constructing `ResourceId`s outside of ResourceIdFactory is unsafe &amp;#8211; see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70154&quot; title=&quot;DatabaseShardingState inappropriately constructs a RESOURCE_MUTEX ResourceId, leading to uncaught exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70154&quot;&gt;&lt;del&gt;SERVER-70154&lt;/del&gt;&lt;/a&gt; (which is an analogous situation) for more detail.&lt;/p&gt;

&lt;p&gt;BalancerStatsRegistry constructs a ResourceId &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0406b63884d9993f0eafd7d6dcd680e0ecdc1a1f/src/mongo/db/s/balancer_stats_registry.cpp#L75&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. This can crash the server.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2154084">SERVER-70322</key>
            <summary>BalancerStatsRegistry inappropriately constructs ResourceId outside ResourceIdFactory</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="tommaso.tocci@mongodb.com">Tommaso Tocci</assignee>
                                    <reporter username="jordi.serra-torrens@mongodb.com">Jordi Serra Torrens</reporter>
                        <labels>
                            <label>sharding-wfbf-day</label>
                    </labels>
                <created>Fri, 7 Oct 2022 07:52:33 +0000</created>
                <updated>Tue, 1 Nov 2022 02:20:45 +0000</updated>
                            <resolved>Tue, 1 Nov 2022 02:18:31 +0000</resolved>
                                    <version>6.0.0</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="4942887" author="tommaso.tocci" created="Tue, 1 Nov 2022 02:18:31 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70864&quot; title=&quot;Get rid of fine grained scoped range deleter lock&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70864&quot;&gt;&lt;del&gt;SERVER-70864&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4912488" author="marcos.grillo" created="Wed, 19 Oct 2022 13:37:53 +0000"  >&lt;p&gt;Passing it to &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pierlauro.sciarelli%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;pierlauro.sciarelli@mongodb.com&quot;&gt;pierlauro.sciarelli@mongodb.com&lt;/a&gt; because he has a more general solution proposal.&lt;/p&gt;</comment>
                            <comment id="4885194" author="JIRAUSER1257318" created="Fri, 7 Oct 2022 08:11:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69893&quot; title=&quot;Add the ability to acquire lock manager mutex resources by name&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69893&quot;&gt;&lt;del&gt;SERVER-69893&lt;/del&gt;&lt;/a&gt; proposed a new LockManager lock type that represents a mutex lockable by name. Using that would be appropriate for this case; however, current decision is not to introduce that new LockManager type.&lt;/p&gt;

&lt;p&gt;On master, we believe there is actually no need for BalancerStatsRegistry to use &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0406b63884d9993f0eafd7d6dcd680e0ecdc1a1f/src/mongo/db/s/balancer_stats_registry.cpp#L73-L76&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;that RESOURCE_MUTEX&lt;/a&gt; because the only usage of the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0406b63884d9993f0eafd7d6dcd680e0ecdc1a1f/src/mongo/db/s/balancer_stats_registry.h#L47&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&quot;weak&quot; variant of ScopedRangeDeleterLock&lt;/a&gt; is &lt;a href=&quot;https://github.com/mongodb/mongo/blob/27e71f251ee6a2136d10b895c72391f9c5a12d59/src/mongo/db/s/range_deletion_util.cpp#L584&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, and I believe it would enough to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0406b63884d9993f0eafd7d6dcd680e0ecdc1a1f/src/mongo/db/s/balancer_stats_registry.cpp#L72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;lock the rangeDeleter collection in MODE_IX&lt;/a&gt;, because:&lt;br/&gt;
(1) It already conflicts with the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0406b63884d9993f0eafd7d6dcd680e0ecdc1a1f/src/mongo/db/s/balancer_stats_registry.h#L46&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&quot;strong&quot; variant&lt;/a&gt;.&lt;br/&gt;
(2) The &lt;a href=&quot;https://github.com/mongodb/mongo/blob/27e71f251ee6a2136d10b895c72391f9c5a12d59/src/mongo/db/s/range_deletion_util.cpp#L585-L595&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;work currently done under that lock&lt;/a&gt; does not need to serialize on a particular collection uuid.&lt;/p&gt;

&lt;p&gt;On v6.0, the situation is more complex, since the weak variant is &lt;a href=&quot;https://github.com/mongodb/mongo/blob/c3932575cb49845903e96e4c26c8e53f707f93f6/src/mongo/db/s/range_deletion_util.cpp#L657&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;used on the FCV upgrade procedure&lt;/a&gt;. More analysis is needed to find a solution.&lt;/p&gt;

&lt;p&gt;(cc &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=allison.easton%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;allison.easton@mongodb.com&quot;&gt;allison.easton@mongodb.com&lt;/a&gt;)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2156696">SERVER-70467</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2167346">SERVER-70864</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2149557">SERVER-70154</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2156092">SERVER-70431</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2143073">SERVER-69893</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2158439">SERVER-70536</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="406898" name="0001-Repro-SERVER-70322.patch" size="3058" author="jordi.serra-torrens@mongodb.com" created="Fri, 7 Oct 2022 07:54:25 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 19 Oct 2022 13:37:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 14 weeks, 2 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>tommaso.tocci@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 14 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jordi.serra-torrens@mongodb.com</customfieldvalue>
            <customfieldvalue>marcos.grillo@mongodb.com</customfieldvalue>
            <customfieldvalue>tommaso.tocci@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1d7kv:</customfieldvalue>

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

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