<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:12:36 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-26593] Chunk metadata memory leak on refresh after migration commit</title>
                <link>https://jira.mongodb.org/browse/SERVER-26593</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;A node undergoing active balancing was observed to accumulate excess allocated memory at a rate of about 2 GB per day for several days until the node hit OOM. The initial part of a run with the heap profiling enabled shows the following stacks, all in _refreshMetadata, responsible for the bulk of the allocated memory.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/141278/141278_sharding.png&quot; width=&quot;100%&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;heapProfile stack888: { 0: &quot;tc_new&quot;, 1: &quot;std::pair&amp;lt;std::_Rb_tree_iterator&amp;lt;std::pair&amp;lt;mongo::BSONObj const, mongo::BSONObj&amp;gt; &amp;gt;, bool&amp;gt; std::_Rb_tree&amp;lt;mongo::BSONObj, std::pair&amp;lt;mongo::BSONObj const...&quot;, 2: &quot;mongo::CollectionMetadata::fillRanges&quot;, 3: &quot;mongo::MetadataLoader::initChunks&quot;, 4: &quot;mongo::MetadataLoader::makeCollectionMetadata&quot;, 5: &quot;mongo::ShardingState::_refreshMetadata&quot;, 6: &quot;mongo::ShardingState::refreshMetadataNow&quot;, 7: &quot;mongo::MigrationSourceManager::MigrationSourceManager&quot;, 8: &quot;0x55abc2eabea1&quot;, 9: &quot;0x55abc2eaddeb&quot;, 10: &quot;mongo::Command::run&quot;, 11: &quot;mongo::Command::execCommand&quot;, 12: &quot;mongo::runCommands&quot;, 13: &quot;mongo::assembleResponse&quot;, 14: &quot;mongo::ServiceEntryPointMongod::_sessionLoop&quot;, 15: &quot;0x55abc261ce80&quot;, 16: &quot;0x55abc326839a&quot;, 17: &quot;0x7fd9de1acdc5&quot;, 18: &quot;clone&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;heapProfile stack887: { 0: &quot;tc_new&quot;, 1: &quot;mongo::ConfigDiffTracker&amp;lt;mongo::BSONObj&amp;gt;::calculateConfigDiff&quot;, 2: &quot;mongo::MetadataLoader::initChunks&quot;, 3: &quot;mongo::MetadataLoader::makeCollectionMetadata&quot;, 4: &quot;mongo::ShardingState::_refreshMetadata&quot;, 5: &quot;mongo::ShardingState::refreshMetadataNow&quot;, 6: &quot;mongo::MigrationSourceManager::MigrationSourceManager&quot;, 7: &quot;0x55abc2eabea1&quot;, 8: &quot;0x55abc2eaddeb&quot;, 9: &quot;mongo::Command::run&quot;, 10: &quot;mongo::Command::execCommand&quot;, 11: &quot;mongo::runCommands&quot;, 12: &quot;mongo::assembleResponse&quot;, 13: &quot;mongo::ServiceEntryPointMongod::_sessionLoop&quot;, 14: &quot;0x55abc261ce80&quot;, 15: &quot;0x55abc326839a&quot;, 16: &quot;0x7fd9de1acdc5&quot;, 17: &quot;clone&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;heapProfile stack869: { 0: &quot;tc_malloc&quot;, 1: &quot;mongo::mongoMalloc&quot;, 2: &quot;mongo::BSONObj::copy&quot;, 3: &quot;mongo::BSONObj::getOwned&quot;, 4: &quot;mongo::ChunkRange::fromBSON&quot;, 5: &quot;mongo::ChunkType::fromBSON&quot;, 6: &quot;mongo::ShardingCatalogClientImpl::getChunks&quot;, 7: &quot;mongo::MetadataLoader::initChunks&quot;, 8: &quot;mongo::MetadataLoader::makeCollectionMetadata&quot;, 9: &quot;mongo::ShardingState::_refreshMetadata&quot;, 10: &quot;mongo::ShardingState::refreshMetadataNow&quot;, 11: &quot;mongo::MigrationSourceManager::MigrationSourceManager&quot;, 12: &quot;0x55abc2eabea1&quot;, 13: &quot;0x55abc2eaddeb&quot;, 14: &quot;mongo::Command::run&quot;, 15: &quot;mongo::Command::execCommand&quot;, 16: &quot;mongo::runCommands&quot;, 17: &quot;mongo::assembleResponse&quot;, 18: &quot;mongo::ServiceEntryPointMongod::_sessionLoop&quot;, 19: &quot;0x55abc261ce80&quot;, 20: &quot;0x55abc326839a&quot;, 21: &quot;0x7fd9de1acdc5&quot;, 22: &quot;clone&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;heapProfile stack872: { 0: &quot;tc_malloc&quot;, 1: &quot;mongo::mongoMalloc&quot;, 2: &quot;mongo::BSONObj::copy&quot;, 3: &quot;mongo::BSONObj::getOwned&quot;, 4: &quot;mongo::ChunkRange::fromBSON&quot;, 5: &quot;mongo::ChunkType::fromBSON&quot;, 6: &quot;mongo::ShardingCatalogClientImpl::getChunks&quot;, 7: &quot;mongo::MetadataLoader::initChunks&quot;, 8: &quot;mongo::MetadataLoader::makeCollectionMetadata&quot;, 9: &quot;mongo::ShardingState::_refreshMetadata&quot;, 10: &quot;mongo::ShardingState::refreshMetadataNow&quot;, 11: &quot;mongo::MigrationSourceManager::MigrationSourceManager&quot;, 12: &quot;0x55abc2eabea1&quot;, 13: &quot;0x55abc2eaddeb&quot;, 14: &quot;mongo::Command::run&quot;, 15: &quot;mongo::Command::execCommand&quot;, 16: &quot;mongo::runCommands&quot;, 17: &quot;mongo::assembleResponse&quot;, 18: &quot;mongo::ServiceEntryPointMongod::_sessionLoop&quot;, 19: &quot;0x55abc261ce80&quot;, 20: &quot;0x55abc326839a&quot;, 21: &quot;0x7fd9de1acdc5&quot;, 22: &quot;clone&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="323004">SERVER-26593</key>
            <summary>Chunk metadata memory leak on refresh after migration commit</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="9">Done</resolution>
                                        <assignee username="esha.maharishi@mongodb.com">Esha Maharishi</assignee>
                                    <reporter username="bruce.lucas@mongodb.com">Bruce Lucas</reporter>
                        <labels>
                            <label>DF</label>
                    </labels>
                <created>Wed, 12 Oct 2016 12:53:06 +0000</created>
                <updated>Sat, 19 Nov 2016 00:06:15 +0000</updated>
                            <resolved>Fri, 14 Oct 2016 20:53:11 +0000</resolved>
                                    <version>3.4.0-rc0</version>
                                    <fixVersion>3.4.0-rc1</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="1409209" author="xgen-internal-githook" created="Fri, 14 Oct 2016 20:52:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Esha Maharishi&apos;, u&apos;email&apos;: u&apos;esha.maharishi@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26593&quot; title=&quot;Chunk metadata memory leak on refresh after migration commit&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26593&quot;&gt;&lt;del&gt;SERVER-26593&lt;/del&gt;&lt;/a&gt; decrement usage counter in ScopedCollectionMetadata&apos;s move constructor&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c1a3bd37d4eb3af247f10398576dcfb5343e81e2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c1a3bd37d4eb3af247f10398576dcfb5343e81e2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1407335" author="kaloian.manassiev" created="Thu, 13 Oct 2016 14:12:59 +0000"  >&lt;p&gt;The leak happens because the move operator of &lt;tt&gt;ScopedCollectionMetadata&lt;/tt&gt; does not execute the destructor logic before accepting the &apos;moved&apos; object&apos;s contents, which means that it will leak a reference. I believe the only usage of the move operator is in &lt;tt&gt;MigrationSourceManager::commitChunkMetadataOnConfig&lt;/tt&gt;. We should preferably get rid of the move operator altogether or we should fix it so it is correct.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="141278" name="sharding.png" size="139176" author="bruce.lucas@mongodb.com" created="Wed, 12 Oct 2016 12:53:06 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.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_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>Thu, 13 Oct 2016 14:12:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 17 weeks, 5 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 17 weeks, 5 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>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjtjr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsqqyf:</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="1236">Sharding 2016-10-31</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|hs0mlr:</customfieldvalue>

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