<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:46:00 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-17922] Insert fails capped collection which is completely filled</title>
                <link>https://jira.mongodb.org/browse/SERVER-17922</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi,&lt;br/&gt;
I have mongodb with few capped collections up and running for last one month. I have used c-driver for insertition. Now i see a weired problem that , one of the capped collections does not rotate the data and does not insert the new records. Collection stats shows count &amp;gt; 45000, where as find does not print a single recored from the collection. This issue is happening only with one of the collection where as others are working fine.&lt;/p&gt;

&lt;p&gt;MongoDB shell version: 2.2.2&lt;br/&gt;
connecting to: test&lt;br/&gt;
&amp;gt; use log&lt;br/&gt;
&amp;gt; db.log.find()&lt;br/&gt;
&amp;gt; db.log.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;ns&quot; : &quot;log.log&quot;,&lt;br/&gt;
	&quot;count&quot; : 45198,&lt;br/&gt;
	&quot;size&quot; : 49610304,&lt;br/&gt;
	&quot;avgObjSize&quot; : 1097.621664675428,&lt;br/&gt;
	&quot;storageSize&quot; : 50335744,&lt;br/&gt;
	&quot;numExtents&quot; : 1,&lt;br/&gt;
	&quot;nindexes&quot; : 1,&lt;br/&gt;
	&quot;lastExtentSize&quot; : 50335744,&lt;br/&gt;
	&quot;paddingFactor&quot; : 1,&lt;br/&gt;
	&quot;systemFlags&quot; : 1,&lt;br/&gt;
	&quot;userFlags&quot; : 0,&lt;br/&gt;
	&quot;totalIndexSize&quot; : 1684256,&lt;br/&gt;
	&quot;indexSizes&quot; : &lt;/p&gt;
{
		&quot;_id_&quot; : 1684256
	}
&lt;p&gt;,&lt;br/&gt;
	&quot;capped&quot; : true,&lt;br/&gt;
	&quot;max&quot; : 2147483647,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.log.find().limit(1)&lt;/p&gt;


&lt;p&gt;I could see below logs from mongod server for sometime.&lt;/p&gt;

&lt;p&gt;Wed Mar 11 04:18:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; insert: couldn&apos;t alloc space for object ns:log.log capped:1&lt;/p&gt;

&lt;p&gt;Please guide how to debug and resolve this issue.&lt;/p&gt;</description>
                <environment></environment>
        <key id="194706">SERVER-17922</key>
            <summary>Insert fails capped collection which is completely filled</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="asethy">Arati Sethy</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Apr 2015 03:58:32 +0000</created>
                <updated>Fri, 10 Apr 2015 18:40:02 +0000</updated>
                            <resolved>Fri, 10 Apr 2015 18:40:02 +0000</resolved>
                                                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="878498" author="samk" created="Fri, 10 Apr 2015 18:39:50 +0000"  >&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;According to our support policy, 2.2 has reached end-of-life. You can see our &lt;a href=&quot;http://www.mongodb.com/support-policy&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;support policy&lt;/a&gt; although I understand the complication in upgrading for your case, we are not able to continue to maintain and update 2.2. You can always reach out to the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;google group&lt;/a&gt; for help on issues with upgrading or issues with older versions and special situations. I&apos;m going to close this ticket for now, but we&apos;d be happy to look into this issue again if we can reproduce it on a current version of MongoDB.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
sam&lt;/p&gt;</comment>
                            <comment id="876771" author="asethy" created="Thu, 9 Apr 2015 08:29:56 +0000"  >&lt;p&gt;Hi Sam,&lt;br/&gt;
 I am using mongod v2.2.2. It is being deployed last year.I used old libmongoc driver, libmongoc-0.7.&lt;br/&gt;
 I can access the DB from shell as well as using above c-driver with tailable functionality.&lt;br/&gt;
Other working collections are also capped collections.&lt;br/&gt;
Details of data files for DB are as follows&lt;br/&gt;
total 209M&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root root  64M Apr  9 12:09 log.0&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root root 128M Apr  9 12:09 log.1&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root root  16M Apr  9 12:09 log.ns&lt;/p&gt;

&lt;p&gt;drwxr-xr-x 2 root root 4.0K Apr  9 08:15 journal/&lt;br/&gt;
-rwxr-xr-x 1 root root    5 Mar 10 21:03 mongod.lock*&lt;br/&gt;
&amp;gt;ls journal/&lt;br/&gt;
total 3.1G&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root root 1.1G Apr  9 08:15 j._156&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root root 1.0G Apr  9 12:10 j._157&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root root   88 Apr  9 12:10 lsn&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root root 1.0G Jan  8 04:26 prealloc.2&lt;/p&gt;

&lt;p&gt;My Application is running on a 4GB RAM box with 450GB hard disk out of which 330G is still free.&lt;/p&gt;

&lt;p&gt;I have neither restarted mongod server nor dropped and created the collection again. I have same application running on 100 such server, this issue is seen only on one server. So I guess, there is no straing forward condition to reproduce this issue.&lt;br/&gt;
Hope this helps you to figure out the root cause. Please let me know if any further information is required.&lt;br/&gt;
I am not in favour of upgrading the db to 2.4 and so on , as it is running quite stable almost for a year.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Arati&lt;/p&gt;</comment>
                            <comment id="875861" author="samk" created="Wed, 8 Apr 2015 15:50:03 +0000"  >&lt;p&gt;The shell example that you posted uses version 2.2 of the shell. Is the &lt;tt&gt;mongod&lt;/tt&gt; that you&apos;re using also 2.2? If you are using 2.2, is there anything that&apos;s preventing you from upgrading to a more recent version of MongoDB? &lt;/p&gt;

&lt;p&gt;Once we can ensure that we&apos;re running one of the currently supported versions of MongoDB (at least 2.6 and preferably 3.0), it would be good to understand: &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Which version of the driver are you using?&lt;/li&gt;
	&lt;li&gt;Can you access the data with the shell or another driver?&lt;/li&gt;
	&lt;li&gt;Are the other collections that still work capped or conventional? Are they part of the same database?&lt;/li&gt;
	&lt;li&gt;Can you reproduce this issue with a new capped collection?&lt;/li&gt;
	&lt;li&gt;How large your data files? What is your available storage? How much data is MongoDB actually storing?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;For upgrade information see the following documents: &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/2.4-upgrade/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;2.2 to 2.4&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/2.6-upgrade/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;2.4 to 2.6&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/3.0-upgrade/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;2.6 to 3.0&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;You can also contact one of our &lt;a href=&quot;http://www.mongodb.org/about/support&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;support channels&lt;/a&gt; for more help with upgrade-related issues. &lt;/p&gt;

&lt;p&gt;I hope this helps and that we can help discover the underlying cause of the behavior that you&apos;re seeing as quickly as possible. &lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
sam&lt;/p&gt;</comment>
                    </comments>
                    <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>Wed, 8 Apr 2015 15:50:03 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 44 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>sam.kleinman</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 44 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asethy</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl8yf:</customfieldvalue>

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

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