<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05: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-4426] cryptic assertion when system.profile is not a capped collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-4426</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Users can manually create system.profile, and if they choose to do this they are supposed to create system.profile as a capped collection but this isn&apos;t actually enforced.  If a non capped system.profile is created and operations are logged to it, non user friendly assertions can be triggered when the initial extent runs out of space:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.createCollection(&quot;system.profile&quot;)&lt;/p&gt;
{ &quot;ok&quot; : 1 }
&lt;p&gt;&amp;gt; db.setProfilingLevel(2)&lt;/p&gt;
{ &quot;was&quot; : 0, &quot;slowms&quot; : 100, &quot;ok&quot; : 1 }
&lt;p&gt;&amp;gt; for( i = 0; i &amp;lt; 100; ++i ) { db.c.save({}); }&lt;br/&gt;
Sun Dec  4 14:29:33 DBClientCursor::init call() failed&lt;br/&gt;
Sun Dec  4 14:29:33 query failed : test.$cmd &lt;/p&gt;
{ getlasterror: 1.0, w: 1.0 }
&lt;p&gt; to: 127.0.0.1:27017&lt;br/&gt;
Sun Dec  4 14:29:33 Error: error doing query: failed shell/collection.js:155&lt;br/&gt;
Sun Dec  4 14:29:33 trying reconnect to 127.0.0.1:27017&lt;br/&gt;
Sun Dec  4 14:29:33 reconnect 127.0.0.1:27017 ok&lt;/p&gt;

&lt;p&gt;Sun Dec  4 14:29:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt;  test.c Assertion failure !loc.isNull() db/pdfile.cpp 2076&lt;br/&gt;
0x1087507f5 0x10874edfb 0x10875c269 0x108c08e5f 0x108a7f537 0x108bdc0d3 0x108e5d3cf 0x10886669a 0x108867ea0 0x108867f02 0x108867f2d 0x10a762460 0x7fff8b3688bf 0x7fff8b36bb75 &lt;br/&gt;
 0   mongod                              0x00000001087507f5 _ZN5mongo15printStackTraceERSo + 37&lt;br/&gt;
 1   mongod                              0x000000010874edfb _ZN5mongo12sayDbContextEPKc + 123&lt;br/&gt;
 2   mongod                              0x000000010875c269 _ZN5mongo8assertedEPKcS1_j + 409&lt;br/&gt;
 3   mongod                              0x0000000108c08e5f _ZN5mongo11DataFileMgr17fast_oplog_insertEPNS_16NamespaceDetailsEPKci + 337&lt;br/&gt;
 4   mongod                              0x0000000108a7f537 _ZN5mongo7profileERKNS_6ClientERNS_5CurOpE + 2455&lt;br/&gt;
 5   mongod                              0x0000000108bdc0d3 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 5283&lt;br/&gt;
 6   mongod                              0x0000000108e5d3cf _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 261&lt;br/&gt;
 7   mongod                              0x000000010886669a _ZN5mongo3pms9threadRunEPNS_13MessagingPortE + 1546&lt;br/&gt;
 8   mongod                              0x0000000108867ea0 _ZN5boost3_bi5list1INS0_5valueIPN5mongo13MessagingPortEEEEclIPFvS5_ENS0_5list0EEEvNS0_4typeIvEERT_RT0_i + 78&lt;br/&gt;
 9   mongod                              0x0000000108867f02 _ZN5boost3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS0_5list1INS0_5valueIS4_EEEEEclEv + 92&lt;br/&gt;
 10  mongod                              0x0000000108867f2d _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS2_5list1INS2_5valueIS6_EEEEEEE3runEv + 37&lt;br/&gt;
 11  libboost_thread-mt.dylib            0x000000010a762460 thread_proxy + 160&lt;br/&gt;
 12  libsystem_c.dylib                   0x00007fff8b3688bf _pthread_start + 335&lt;br/&gt;
 13  libsystem_c.dylib                   0x00007fff8b36bb75 thread_start + 13&lt;br/&gt;
Sun Dec  4 14:29:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; AssertionException handling request, closing client connection: 0 assertion db/pdfile.cpp:2076&lt;/p&gt;

&lt;p&gt;I think a similar error message may be possible if system.profile is a capped collection but was created in such a way that a record of the required size cannot be allocated (if system.profile is small or if all of its extents are small).&lt;/p&gt;

&lt;p&gt;We should probably check if system.profile is capped either when it is created or when an operation is logged to it.  We should probably also trigger a more user friendly assertion if space for a profile record cannot be allocated in system.profile.&lt;/p&gt;</description>
                <environment></environment>
        <key id="25983">SERVER-4426</key>
            <summary>cryptic assertion when system.profile is not a capped collection</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="-1">Unassigned</assignee>
                                    <reporter username="aaron">Aaron Staple</reporter>
                        <labels>
                    </labels>
                <created>Sun, 4 Dec 2011 22:39:01 +0000</created>
                <updated>Fri, 15 Feb 2013 15:06:46 +0000</updated>
                            <resolved>Thu, 17 Jan 2013 18:47:32 +0000</resolved>
                                                                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="242779" author="eliot" created="Thu, 17 Jan 2013 18:47:32 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7814&quot; title=&quot;improve error message on fast_oplog_insert if collection isn&amp;#39;t capped&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7814&quot;&gt;&lt;del&gt;SERVER-7814&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="25881">SERVER-4416</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 17 Jan 2013 18:47:32 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 4 weeks, 6 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</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|hrok0f:</customfieldvalue>

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

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

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