<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:17 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-493] replica pairs keep growing</title>
                <link>https://jira.mongodb.org/browse/SERVER-493</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;m not inserting anything and running out of space on my 32-bit machine.&lt;/p&gt;

&lt;p&gt;I&apos;m testing out replica pair failover with a driver.  Every couple seconds I kill the master db server (call it A), wait for the other db (B) to become master, and restart A.  Then I kill B, wait a couple seconds, restart B, repeat.  After ~ 20 minutes of this, when I try to restart one of them, I get:&lt;/p&gt;

&lt;p&gt;  mmap() failed for /home/k/dbs/data2/local.7 len:536870912 errno:12&lt;br/&gt;
     mmap failed with out of memory, if you&apos;re using 32-bits, then you probably need to upgrade to 64&lt;br/&gt;
Thu Dec 17 12:33:06 User Exception can&apos;t map file memory - mongo requires 64 bit build for larger datasets&lt;br/&gt;
Thu Dec 17 12:33:06   exception in initAndListen std::exception: can&apos;t map file memory - mongo requires 64 bit build for larger datasets, terminating&lt;/p&gt;

&lt;p&gt;data2 contains:&lt;br/&gt;
local.0  local.2  local.4  local.6  local.ns&lt;br/&gt;
local.1  local.3  local.5  local.7  mongod.lock&lt;/p&gt;

&lt;p&gt;I&apos;m not doing anything other than querying and restarting the server, so it seems weird it&apos;s taking up 2GB so quickly, even if it is logging stuff.&lt;/p&gt;</description>
                <environment></environment>
        <key id="11017">SERVER-493</key>
            <summary>replica pairs keep growing</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="aaron">Aaron Staple</assignee>
                                    <reporter username="kristina">Kristina Chodorow</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Dec 2009 12:42:14 +0000</created>
                <updated>Tue, 12 Jul 2016 00:29:50 +0000</updated>
                            <resolved>Tue, 19 Jan 2010 20:46:00 +0000</resolved>
                                    <version>1.2.1</version>
                    <version>1.3.0</version>
                                    <fixVersion>1.3.1</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="11840" author="aaron" created="Tue, 19 Jan 2010 20:38:48 +0000"  >&lt;p&gt;Should be fixed now&lt;/p&gt;</comment>
                            <comment id="11836" author="auto" created="Tue, 19 Jan 2010 19:34:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-493&quot; title=&quot;replica pairs keep growing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-493&quot;&gt;&lt;del&gt;SERVER-493&lt;/del&gt;&lt;/a&gt; when opening &apos;all&apos; files, don&apos;t open preallocated ones&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/1f9867f393d33b769a4e34780be798f3d654d281&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/1f9867f393d33b769a4e34780be798f3d654d281&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11835" author="auto" created="Tue, 19 Jan 2010 19:34:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-493&quot; title=&quot;replica pairs keep growing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-493&quot;&gt;&lt;del&gt;SERVER-493&lt;/del&gt;&lt;/a&gt; file preallocation test&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/ce217513aa537b8c9696d365a6b464cd8ada3d9c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/ce217513aa537b8c9696d365a6b464cd8ada3d9c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11834" author="aaron" created="Tue, 19 Jan 2010 17:50:02 +0000"  >&lt;p&gt;Sorry, I was running tests in environment that didn&apos;t produce this issue.&lt;/p&gt;

&lt;p&gt;The problem results from a conflict between the new &quot;openAllFiles&quot; behavior and the preallocation scheme which assumes that a preallocated file won&apos;t be opened until we need to allocate new data in it.  I&apos;ll work on a fix.&lt;/p&gt;</comment>
                            <comment id="11830" author="kristina" created="Tue, 19 Jan 2010 15:21:00 +0000"  >&lt;p&gt;The db directories were empty when I started (except for the arbiter&apos;s).&lt;/p&gt;

&lt;p&gt;I didn&apos;t have a script, I ran:&lt;/p&gt;

&lt;p&gt;./mongod --pairwith localhost:27018 --arbiter localhost:27019 --dbpath ~/dbs/data1&lt;br/&gt;
./mongod --port 27018 --pairwith localhost:27017 --arbiter localhost:27019 --dbpath ~/dbs/data2&lt;br/&gt;
./mongod --port 27019&lt;/p&gt;

&lt;p&gt;Then I killed off the master, restarted it.  Killed off the other, restarted it.  Repeated for a while. &lt;/p&gt;</comment>
                            <comment id="11828" author="aaron" created="Tue, 19 Jan 2010 13:15:23 +0000"  >&lt;p&gt;Pls go ahead and reassign to me once you send the info, thx.&lt;/p&gt;</comment>
                            <comment id="11827" author="aaron" created="Tue, 19 Jan 2010 13:14:49 +0000"  >&lt;p&gt;I haven&apos;t been able to reproduce this behavior using the instructions.  Kristina, could you provide the script you used?  Also, from the logs it looks like the databases weren&apos;t started on fresh db paths.  Do you know what was there when your test began?&lt;/p&gt;</comment>
                            <comment id="11811" author="eliot" created="Sat, 16 Jan 2010 11:21:41 +0000"  >&lt;p&gt;Can use the process info stuff to validate vsize - mapped on linux&lt;/p&gt;</comment>
                            <comment id="11810" author="eliot" created="Sat, 16 Jan 2010 11:21:04 +0000"  >&lt;p&gt;Have heard similarish things from 3 people - so we need to make sure we&apos;re ok.&lt;/p&gt;</comment>
                            <comment id="11760" author="eliot" created="Wed, 13 Jan 2010 15:31:55 +0000"  >&lt;p&gt;had various reports of this on the 1.2 branch&lt;/p&gt;

&lt;p&gt;aaron: can you do some testing and figure out if there is an issue?&lt;br/&gt;
maybe a functional test as well&lt;/p&gt;</comment>
                            <comment id="11629" author="aaron" created="Tue, 5 Jan 2010 18:26:27 +0000"  >&lt;p&gt;Happy to look at it, but I don&apos;t know what recent changes you&apos;re referring to.  I made some changes earlier today, but they wouldn&apos;t have caused a bug on Dec 17.  Before today it looks like I haven&apos;t made any capped changes since September.&lt;/p&gt;</comment>
                            <comment id="11622" author="redbeard0531" created="Tue, 5 Jan 2010 18:03:41 +0000"  >&lt;p&gt;@Aaron: I think this is related to your recent capped collection changes. It appears to keep trying to create new oplogs on the new master and not using old space. I can confirm that this is a regression from 1.2. Reassign this to me if it isn&apos;t related to your changes.&lt;/p&gt;</comment>
                            <comment id="11424" author="kristina" created="Fri, 18 Dec 2009 17:36:04 +0000"  >&lt;p&gt;Full logs run with -v.&lt;/p&gt;

&lt;p&gt;1.log was the one that eventually failed to start, you can see that part on the bottom. &lt;/p&gt;</comment>
                            <comment id="11419" author="eliot" created="Fri, 18 Dec 2009 16:19:31 +0000"  >&lt;p&gt;can you run with -v&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="10109" name="1.log" size="90053" author="kristina" created="Fri, 18 Dec 2009 17:36:04 +0000"/>
                            <attachment id="10110" name="2.log" size="86214" author="kristina" created="Fri, 18 Dec 2009 17:36:04 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 18 Dec 2009 16:19:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 5 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>
                            14 years, 5 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrptk7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrimi7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22298</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|hs50zr:</customfieldvalue>

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