<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:57 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-2701] dur commitifneeded needed in NamespaceDetails::capped?</title>
                <link>https://jira.mongodb.org/browse/SERVER-2701</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:880 bytes:17530880&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:920 bytes:17694720&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:960 bytes:17858560&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:1000 bytes:18022400&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:1040 bytes:18186240&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:1080 bytes:18350080&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:1120 bytes:18513920&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:1160 bytes:18677760&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:1200 bytes:18841600&lt;br/&gt;
0x80e6c3 0x8d30a9 0x8cab9c 0x8cae0f 0x986867 0x98be2d 0x98ca49 0x98794e 0x986ac8 0x9b4f49 0x974a42 0x974f34 0x99b674 0x999334 0xa810f0 0x86eb91 0x86eb41 0x86eb&lt;br/&gt;
0 0x7f1106bdad60 0x3959e077e1&lt;br/&gt;
 ./mongod(_ZN5mongo15printStackTraceERSo+0x27) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x80e6c3&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo3dur9CommitJob4noteEPvi+0x2a7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8d30a9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo3dur11DurableImpl18declareWriteIntentEPvj+0x2c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8cab9c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo3dur11DurableImpl10writingPtrEPvj+0x3d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8cae0f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo16NamespaceDetails13addDeletedRecEPNS_13DeletedRecordENS_7DiskLocE+0x35) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x986867&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo16NamespaceDetails7compactEv+0x209) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98be2d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo16NamespaceDetails11cappedAllocEPKci+0x337) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98ca49&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo16NamespaceDetails6_allocEPKci+0x52) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98794e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo16NamespaceDetails5allocEPKciRNS_7DiskLocE+0x4e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x986ac8&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo11DataFileMgr17fast_oplog_insertEPNS_16NamespaceDetailsEPKci+0xf9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9b4f49&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x974a42&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo5logOpEPKcS1_RKNS_7BSONObjEPS2_Pb+0x5e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x974f34&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE+0x38c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x99b674&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x6bb) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x999334&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x2d3) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa810f0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5boost3_bi5list1INS0_5valueIPN5mongo13MessagingPortEEEEclIPFvS5_ENS0_5list0EEEvNS0_4typeIvEERT_RT0_i+0x47) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x86eb91&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5boost3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS0_5list1INS0_5valueIS4_EEEEEclEv+0x3f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x86eb41&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS2_5list1INS2_5valueIS6_EEEEEEE3runEv+0x1e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x86eb00&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib64/libboost_thread-mt.so.5(thread_proxy+0x60) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f1106bdad60&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x3959e077e1&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Mar  7 20:57:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:1240 bytes:19005440&lt;/p&gt;</description>
                <environment></environment>
        <key id="15029">SERVER-2701</key>
            <summary>dur commitifneeded needed in NamespaceDetails::capped?</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="dwight@mongodb.com">Dwight Merriman</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Mar 2011 02:12:17 +0000</created>
                <updated>Tue, 29 May 2012 14:53:29 +0000</updated>
                            <resolved>Mon, 14 Mar 2011 13:11:32 +0000</resolved>
                                                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="25852" author="dwight_10gen" created="Mon, 14 Mar 2011 13:11:32 +0000"  >&lt;p&gt;i think this may actually be ok as-is.&lt;/p&gt;</comment>
                            <comment id="25594" author="dwight_10gen" created="Wed, 9 Mar 2011 15:08:43 +0000"  >&lt;p&gt;i&apos;m pretty sure in general it&apos;s not safe to commitIfNeeded herein &amp;#8211; imagine a capped collection with a bunch of indexes.  if adding the index keys comes second, that becomes a separate &quot;transaction&quot;.&lt;/p&gt;

&lt;p&gt;the oplog is generally the last thing we do, in that scenario it is probably ok, but as said above doesn&apos;t seem to generalize.  if it only goes up to 3x bsonsizemax it is ok anyway.&lt;/p&gt;</comment>
                            <comment id="25573" author="dwight_10gen" created="Wed, 9 Mar 2011 00:20:36 +0000"  >&lt;p&gt;can get it to this or higher: &lt;/p&gt;

&lt;p&gt;Tue Mar  8 19:05:40 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn42&amp;#93;&lt;/span&gt; debug nsincecommitifneeded:9720 bytes:54607872&lt;/p&gt;

&lt;p&gt;to repro run with --oplogSize 128, run several times:&lt;/p&gt;

&lt;p&gt;./mongo jstests/b*js&lt;/p&gt;

&lt;p&gt;big_object1.js is the thing that makes it happen.  normal this will take some, just seems to be going a bit higher than expected.  maybe that is the right number.  for a big object we have &lt;br/&gt;
(1) the object itself&lt;br/&gt;
(2) its copy in the oplog&lt;br/&gt;
(3) the cleanup of the capped coll first.&lt;/p&gt;

&lt;p&gt;so 3X max bsonobjsize is expected.&lt;/p&gt;</comment>
                            <comment id="25521" author="dwight_10gen" created="Tue, 8 Mar 2011 17:28:32 +0000"  >&lt;p&gt;only if it&apos;s super safe&lt;/p&gt;</comment>
                            <comment id="25510" author="eliot" created="Tue, 8 Mar 2011 15:42:41 +0000"  >&lt;p&gt;I think we need to do this for 1.8.0, or no?&lt;/p&gt;</comment>
                            <comment id="25470" author="dwight_10gen" created="Tue, 8 Mar 2011 04:04:53 +0000"  >&lt;p&gt;btw : would it possible to do this incrementally, so that we don&apos;t have such a large txn?&lt;/p&gt;</comment>
                            <comment id="25469" author="aaron" created="Tue, 8 Mar 2011 02:33:36 +0000"  >&lt;p&gt;There can potentially be lots of writes happening in the loop within cappedAlloc().  It would be fairly easy to add a commitIfNeeded() as part of that loop.  We&apos;d need to check the call sites of cappedAlloc() and its ancestor callers for write pointers that might be invalidated by a commit.&lt;/p&gt;

&lt;p&gt;Dwight, could you assign a priority / version so I&apos;ll know when I should work on this?&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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 8 Mar 2011 02:33:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 49 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>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 49 weeks, 2 days 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_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>aaron</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrijdr:</customfieldvalue>

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

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

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