<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:54 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-2079] Authenticated Connections do not get terminated when dropDatabase() command is issued.</title>
                <link>https://jira.mongodb.org/browse/SERVER-2079</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If the user has an active connection to a particular database, with the server running in an authenticated environment, if you go into the MongoDB shell and execute a `db.dropDatabase()` or `db.getSisterDB(&apos;db_name&apos;).dropDatabase()` the data is dropped, but the authenticated connections are left open allowing the system to recreate the database.&lt;/p&gt;

&lt;p&gt;A temporary workaround is to restart /etc/networking to kill all active connections or restart mongodb for it to take effect. This is a pretty big bug for the MongoDB hosts out there like ourselves.&lt;/p&gt;

&lt;p&gt;Here is a gist below of what the log output says: &lt;a href=&quot;https://gist.github.com/9a6e2b1b81917d18b11c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/9a6e2b1b81917d18b11c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tue Nov  9 04:31:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65729&amp;#93;&lt;/span&gt; run command clobby-staging.$cmd &lt;/p&gt;
{ dropDatabase: 1.0 }
&lt;p&gt;Tue Nov  9 04:31:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65729&amp;#93;&lt;/span&gt; dropDatabase clobby-staging&lt;br/&gt;
Tue Nov  9 04:31:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65729&amp;#93;&lt;/span&gt; dropDatabase clobby-staging&lt;/p&gt;


&lt;p&gt;Tue Nov  9 04:31:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65729&amp;#93;&lt;/span&gt; run command clobby-staging.$cmd &lt;/p&gt;
{ dropDatabase: 1.0 }
&lt;p&gt;Tue Nov  9 04:31:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65729&amp;#93;&lt;/span&gt; dropDatabase clobby-staging&lt;br/&gt;
Tue Nov  9 04:31:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65729&amp;#93;&lt;/span&gt; dropDatabase clobby-staging&lt;br/&gt;
Tue Nov  9 04:31:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt; getmore local.oplog.$main cid:5068368097862225500 getMore: { ts: &lt;/p&gt;
{ $gte: new Date(5534923916268535809) }
&lt;p&gt; }  bytes:105 nreturned:1 3282ms&lt;br/&gt;
Tue Nov  9 04:31:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65729&amp;#93;&lt;/span&gt; query clobby-staging.$cmd ntoreturn:1 command: &lt;/p&gt;
{ dropDatabase: 1.0 }
&lt;p&gt; reslen:81 12ms&lt;/p&gt;

&lt;p&gt;Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; Accessing: clobby-staging for the first time&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; query clobby-staging.rooms ntoreturn:1 reslen:36 nreturned:0 0ms&lt;br/&gt;
Tue Nov  9 04:31:42 allocating new datafile /data/mongodb/clobby-staging/clobby-staging.ns, filling with zeroes...&lt;br/&gt;
Tue Nov  9 04:31:42 done allocating datafile /data/mongodb/clobby-staging/clobby-staging.ns, size: 16MB,  took 0.002 secs&lt;br/&gt;
Tue Nov  9 04:31:42 allocating new datafile /data/mongodb/clobby-staging/clobby-staging.0, filling with zeroes...&lt;br/&gt;
Tue Nov  9 04:31:42 done allocating datafile /data/mongodb/clobby-staging/clobby-staging.0, size: 64MB,  took 0.001 secs&lt;br/&gt;
Tue Nov  9 04:31:42 allocating new datafile /data/mongodb/clobby-staging/clobby-staging.1, filling with zeroes...&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; New namespace: clobby-staging.rooms&lt;br/&gt;
New namespace: clobby-staging.system.namespaces&lt;br/&gt;
adding _id index for collection clobby-staging.rooms&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; New namespace: clobby-staging.system.indexes&lt;br/&gt;
building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for clobby-staging.rooms&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; external sort root: /data/mongodb/_tmp/esort.1289277102.2034221856/&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; 	 external sort used : 0 files  in 0 secs&lt;br/&gt;
Tue Nov  9 04:31:42 done allocating datafile /data/mongodb/clobby-staging/clobby-staging.1, size: 128MB,  took 0.001 secs&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; New namespace: clobby-staging.rooms.$&lt;em&gt;id&lt;/em&gt;&lt;br/&gt;
	 done building bottom layer, going to commit&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; 	 fastBuildIndex dupsToDrop:0&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; done for 0 records 0secs&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt; getmore local.oplog.$main cid:5068368097862225500 getMore: { ts: &lt;/p&gt;
{ $gte: new Date(5534923916268535809) }
&lt;p&gt; }  bytes:184 nreturned:1 798ms&lt;br/&gt;
Tue Nov  9 04:31:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn65447&amp;#93;&lt;/span&gt; insert clobby-staging.rooms 60ms&lt;/p&gt;</description>
                <environment>ubuntu 10.04</environment>
        <key id="13654">SERVER-2079</key>
            <summary>Authenticated Connections do not get terminated when dropDatabase() command is issued.</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jsmestad">Justin Smestad</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Nov 2010 04:44:21 +0000</created>
                <updated>Fri, 8 Mar 2013 15:55:31 +0000</updated>
                            <resolved>Thu, 28 Feb 2013 16:26:21 +0000</resolved>
                                    <version>1.6.3</version>
                                                                        <votes>5</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="278248" author="dcardon@adobe.com" created="Thu, 28 Feb 2013 16:44:54 +0000"  >&lt;p&gt;Sorry, I should clarify my example, because I don&apos;t believe the duplicate you identify is a duplicate.  Here&apos;s the full process:&lt;/p&gt;

&lt;p&gt;Cluster routing service domain: mongos&lt;br/&gt;
Cluster shard domains: alice, bob, chuck&lt;/p&gt;

&lt;p&gt;Main write process = M&lt;br/&gt;
Oplog follower process = F&lt;br/&gt;
Mongo console = C&lt;/p&gt;

&lt;p&gt;M authenticates against: mongos/admin&lt;br/&gt;
F authenticates against: mongos/admin&lt;br/&gt;
C authenticates against: mongos/admin&lt;br/&gt;
M foo.bar.insert(&lt;/p&gt;
{...})&lt;br/&gt;
C foo_z.bar.ensureIndex({l:1}); (mongo assigns foo_z.bar to bob)&lt;br/&gt;
F foo_z.bar.insert({...}
&lt;p&gt;) =&amp;gt; which directs writes to bob/foo_z.bar&lt;br/&gt;
C foo.dropDatabase();&lt;br/&gt;
C foo_z.dropDatabase();&lt;br/&gt;
C foo_z.bar.ensureIndex(&lt;/p&gt;
{l:1}
&lt;p&gt;); (mongo assigns foo_z.bar to chuck this time around)&lt;br/&gt;
M foo.bar.insert(&lt;/p&gt;
{...})&lt;br/&gt;
F foo_z.bar.insert({...}
&lt;p&gt;) =&amp;gt; which STILL directs writes to bob/foo_z.bar (even though config collections state that foo_z.bar resides on chuck)&lt;/p&gt;

&lt;p&gt;So, I&apos;m not removing any users or databases whose credentials should be invalidated.  My admin credentials are still perfectly valid in this process.&lt;/p&gt;</comment>
                            <comment id="278224" author="scotthernandez" created="Thu, 28 Feb 2013 16:26:21 +0000"  >&lt;p&gt;David, what you are talking about is very different, and related to issues in mongos or the client app. The former will be fixed in 2.4 since we uniquely identify collections which have the same name but are different instances in mongos/sharded-clusters (using a unique ObjectId for each instance).&lt;/p&gt;</comment>
                            <comment id="278212" author="dcardon@adobe.com" created="Thu, 28 Feb 2013 16:14:50 +0000"  >&lt;p&gt;Here is (I think) one of the side effects of this issue that we are seeing: &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;We have a custom oplog follower that observes changes and writes to the cluster&lt;/li&gt;
	&lt;li&gt;This oplog follower makes authenticated connections to mongos&lt;/li&gt;
	&lt;li&gt;When a database is dropped, the oplog follower&apos;s connection &quot;remembers&quot; the original routing to collections within the dropped database&lt;/li&gt;
	&lt;li&gt;If the database with the same name gets created again, the oplog follower will write to the collection&apos;s original location, NOT the newly assigned location for the collection.&lt;/li&gt;
	&lt;li&gt;As a result, connections through mongos (except for the follower&apos;s) are unaware of the misplaced records.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;Cluster shard domains: alice, bob, chuck&lt;br/&gt;
Process inserts into: foo.bar &lt;br/&gt;
console: db.getSiblingDB(&apos;foo_z&apos;).bar.ensureIndex(&lt;/p&gt;
{l:1}
&lt;p&gt;); (mongo assigns foo_z.bar to bob)&lt;br/&gt;
Oplog follower writes to: foo_z.bar which translates to bob/foo_z.bar&lt;br/&gt;
console: db.getSiblingDB(&apos;foo&apos;).dropDatabase();&lt;br/&gt;
console: db.getSiblingDB(&apos;foo_z&apos;).dropDatabase();&lt;br/&gt;
console: db.getSiblingDB(&apos;foo_z&apos;).bar.ensureIndex(&lt;/p&gt;
{l:1}
&lt;p&gt;); (mongo assigns foo_z.bar to chuck&lt;br/&gt;
Process inserts into: foo.bar&lt;br/&gt;
Oplog follower writes to: foo_z.bar which STILL translates to bob/foo_z.bar (even though other connections expect chuck/foo_z.bar)&lt;/p&gt;</comment>
                            <comment id="30554" author="abcrumley" created="Sun, 1 May 2011 21:02:34 +0000"  >&lt;p&gt;Justin,&lt;/p&gt;

&lt;p&gt;I am working on this one but it is my first attempt at a MongoDB contribution so we will see how it works out.  &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="30547" author="jsmestad" created="Sun, 1 May 2011 18:47:49 +0000"  >&lt;p&gt;Is there any movement on this?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="13655">SERVER-2080</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="45607">SERVER-6620</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 1 May 2011 21:02:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 50 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>
                            10 years, 50 weeks, 6 days ago
                        </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>abcrumley</customfieldvalue>
            <customfieldvalue>dcardon@adobe.com</customfieldvalue>
            <customfieldvalue>jsmestad</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpbkv:</customfieldvalue>

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

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

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