<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:06 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-3451] It might still be possible to create two DBs whose names differ only by case</title>
                <link>https://jira.mongodb.org/browse/SERVER-3451</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In production, our site developed a problem where we couldn&apos;t write any updates. The perl MongoDB driver merely returned: &quot;db assertion failed&quot;. That&apos;s it. No errors logged in mongodb&apos;s log.&lt;/p&gt;

&lt;p&gt;That&apos;s my biggest complaint. I had taken mongod down, run a repair, restarted the app, restarted mongod, and it was still unable to take updates. I had no idea what was going on.&lt;/p&gt;

&lt;p&gt;The only reason I was able to figure out the illegal duplicate database (as a different capitalisation) was because I trashed our 14GB (in mongo) of data and re-imported the whole site again from scratch. This time, I got a hint:&lt;/p&gt;

&lt;p&gt;query error: db already exists with different case other: &lt;span class=&quot;error&quot;&gt;&amp;#91;foswiki__Marine__AusLarv&amp;#93;&lt;/span&gt; me &lt;span class=&quot;error&quot;&gt;&amp;#91;foswiki__Marine__Auslarv&amp;#93;&lt;/span&gt; at /usr/local&lt;br/&gt;
/lib/perl/5.10.1/MongoDB/Collection.pm line 246.&lt;br/&gt;
 at /usr/local/lib/perl/5.10.1/MongoDB/Collection.pm line 246&lt;/p&gt;

&lt;p&gt;Attached a full backtrace, although it probably isn&apos;t very useful.&lt;/p&gt;

&lt;p&gt;Now, the timing of this coincides exactly with a user who tried to rename their &apos;area&apos; (= mongod database). So what&apos;s happened is that the &apos;rename&apos; code (really just a copy/delete, I suspect) in our perl app was somehow allowed to create a new database of the same name/different case, and afterward we are unable to write any updates at all to any database served by that mongod at all.&lt;/p&gt;</description>
                <environment>Ubuntu 10.04.2 LTS on amd64. Single mongod, no replication, no sharding.&lt;br/&gt;
&lt;br/&gt;
noprealloc = true&lt;br/&gt;
smallfiles = true&lt;br/&gt;
directoryperdb = true&lt;br/&gt;
&lt;br/&gt;
mongod --version&lt;br/&gt;
db version v1.9.0, pdfile version 4.5&lt;br/&gt;
Wed Jul 20 10:51:51 git version: 434d8b47e569578d932e3caedd3bb16e8c0836a3</environment>
        <key id="19892">SERVER-3451</key>
            <summary>It might still be possible to create two DBs whose names differ only by case</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="5">Cannot Reproduce</resolution>
                                        <assignee username="aaron">Aaron Staple</assignee>
                                    <reporter username="csirac2">Paul Harvey</reporter>
                        <labels>
                            <label>perl</label>
                    </labels>
                <created>Wed, 20 Jul 2011 01:13:59 +0000</created>
                <updated>Fri, 30 Mar 2012 14:37:01 +0000</updated>
                            <resolved>Tue, 23 Aug 2011 17:05:15 +0000</resolved>
                                    <version>1.9.0</version>
                                                    <component>Storage</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="50055" author="csirac2" created="Tue, 23 Aug 2011 00:42:58 +0000"  >&lt;p&gt;I guess there may have been some other error to cause mongo to fail to take any updates. I didn&apos;t think to look for this error until after I&apos;d trashed the DB and discovered the problem when re-populating mongo.&lt;/p&gt;

&lt;p&gt;I just tried (and failed) to reproduce with db version v1.9.2, pdfile version 4.5 git version: 94ce2d93733dcbc515a1325d759b8312962279db using the code we had in production at the time.&lt;/p&gt;

&lt;p&gt;So I guess we can close this.&lt;/p&gt;</comment>
                            <comment id="49905" author="aaron" created="Mon, 22 Aug 2011 16:28:55 +0000"  >&lt;p&gt;It&apos;s not clear from the description that two databases differing in name only by casing existed at the same time, which is what we&apos;re supposed to prevent.  You say you re imported the data and saw a casing error while doing this.  Is it possible the user created or renamed their database at the same time as this, causing an error on your side but not causing duplicate databases to exist simultaneously?&lt;/p&gt;</comment>
                            <comment id="49227" author="csirac2" created="Thu, 18 Aug 2011 05:15:04 +0000"  >&lt;p&gt;Foswiki&apos;s MongoDBPlugin now uses an md5 hash of the web name, as the mongodb database name.&lt;/p&gt;

&lt;p&gt;Not sure how to progress this item any further from my end.&lt;/p&gt;</comment>
                            <comment id="43441" author="csirac2" created="Wed, 20 Jul 2011 01:40:32 +0000"  >&lt;p&gt;This also exposes a bug in --repair mode of mongod.&lt;/p&gt;

&lt;p&gt;I ran --repair before blowing away the data, and it failed to inform me that I had illegal/duplicate database names.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12376" name="mongoload_crash.txt" size="2636" author="csirac2" created="Wed, 20 Jul 2011 01:13:59 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 22 Aug 2011 16:28:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 26 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>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>
                            12 years, 26 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>csirac2</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrovhj:</customfieldvalue>

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

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

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