<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:51:34 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-19620] Mongod killed because of OOM during index build Bottom up</title>
                <link>https://jira.mongodb.org/browse/SERVER-19620</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;During index building Buttom up stage mongod was killed because of out of memory. Some stats:&lt;br/&gt;
4CPU cores, 8GB RAM (usually half is used)&lt;br/&gt;
MongoDB 3.0.4&lt;br/&gt;
Replica set with 2 members + arbiter&lt;br/&gt;
WiredTiger&lt;br/&gt;
Collection had 37302912 docs  in it.&lt;br/&gt;
Compound index was build on 3 fields (string, string, date).&lt;br/&gt;
Index building stage finished fine. However during Bottom up mongod was killed. Last entry in mongod log:&lt;br/&gt;
2015-07-28T04:07:37.001-0400 I -        &lt;span class=&quot;error&quot;&gt;&amp;#91;conn33853&amp;#93;&lt;/span&gt;   Index: (2/3) BTree Bottom Up Progress: 23171800/37302912 62%&lt;br/&gt;
There were no stack traces. &lt;br/&gt;
However kernel log indicates that mongod was killed because of out of memory:&lt;br/&gt;
Out of memory: Kill process 1670 (mongod) score 921 or sacrifice child&lt;br/&gt;
Killed process 1670, UID 0, (mongod) total-vm:15740096kB, anon-rss:7576600kB, file-rss:300kB&lt;/p&gt;

&lt;p&gt;Should mongod really be killed if there is not enough memory for bottom up? I doubt it. If not enough memory, just kill index building process.&lt;/p&gt;

&lt;p&gt;As side effect of this - when mongod was started and synced I checked state of collection on which index was built. To my surprise its reported that it now has particular index. However as mongod was killed, info was not passed to secondary of that time (which is now master). Now i have new primary without index, secondary with index and i have no clue what to do with it. Is it correct, is it corrupt. How to get rid of it if its on secondary and not on master.&lt;/p&gt;</description>
                <environment></environment>
        <key id="222973">SERVER-19620</key>
            <summary>Mongod killed because of OOM during index build Bottom up</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="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="Endijs">Endijs Lisovskis [X]</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Jul 2015 09:23:52 +0000</created>
                <updated>Tue, 28 Jul 2015 21:43:03 +0000</updated>
                            <resolved>Tue, 28 Jul 2015 21:42:49 +0000</resolved>
                                    <version>3.0.4</version>
                                                    <component>Index Maintenance</component>
                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="991337" author="ramon.fernandez" created="Tue, 28 Jul 2015 21:42:40 +0000"  >&lt;p&gt;3.0.5 is available for download at &lt;a href=&quot;https://www.mongodb.org/downloads&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.org/downloads&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To remove the index on the secondary you can follow the &lt;a href=&quot;https://www.mongodb.org/downloads&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;procedure described here to add an index&lt;/a&gt;, and drop the index instead of creating it.&lt;/p&gt;

&lt;p&gt;I&apos;m going to close this ticket as a duplicate of  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18829&quot; title=&quot;Cache usage exceeds configured maximum during index builds under WiredTiger&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18829&quot;&gt;&lt;del&gt;SERVER-18829&lt;/del&gt;&lt;/a&gt;. If the problem persists with 3.0.5 please let us know.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="990576" author="endijs" created="Tue, 28 Jul 2015 13:18:16 +0000"  >&lt;p&gt;OK. Looking forward for 3.0.5 release and then will try again. Any suggestion on how to handle &quot;hanging&quot; index on secondary? What is best practice in this situation? As I wrote in description i have now ended up with index on secondary and no index on primary. I guess best scenario is to get rid of index in secondary, to have identical collection setup. Is that so? If it is - how best to achieve this? Do i need to step down from current primary and once roles will be changed, drop index or there is different approach that should be used?&lt;/p&gt;</comment>
                            <comment id="990572" author="ramon.fernandez" created="Tue, 28 Jul 2015 13:13:35 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Endijs&quot; class=&quot;user-hover&quot; rel=&quot;Endijs&quot;&gt;Endijs&lt;/a&gt;, looks like you&apos;re running into &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18829&quot; title=&quot;Cache usage exceeds configured maximum during index builds under WiredTiger&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18829&quot;&gt;&lt;del&gt;SERVER-18829&lt;/del&gt;&lt;/a&gt;, sorry about that. This bug has been fixed in 3.0.5, which will be released later today.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="208369">SERVER-18829</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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>Tue, 28 Jul 2015 13:13:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 29 weeks, 1 day 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>
                            8 years, 29 weeks, 1 day 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>Endijs</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkzbb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsc5xb:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;I did not try to reproduce it (as that is live system), thus I&apos;m not 100% sure it&apos;s easy to reproduce. But you can try to build compound index on 3 fields (1 string averaging 20 chars, but can be up to 100, 1 string ~10chars, date) on 8GB system which uses 4GB during normal day to day situation, on collection with 40M documents. &lt;/p&gt;</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|hsftdr:</customfieldvalue>

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