Not quite sure how to accurately characterize the problem. But clearly with a DB that started in auth mode with no bowtiesarecool database it seems like a problem that without anyone with credentials mentioning the database it got created and populated with data.
Certainly related to SERVER-2080. It's not clear to me if fixing that is the only thing that needs to happen or if the profiling behavior is an issue in its own right.
% mongo localhost/admin -u *** -p ***
MongoDB shell version: 1.8.2
connecting to: localhost/admin
> show dbs
admin 5GB
local 5GB
> exit
bye
% mongo localhost/bowtiesarecool
MongoDB shell version: 1.8.2
connecting to: localhost/bowtiesarecool
> db.setProfilingLevel(2)
> show dbs
admin 5GB
bowtiesarecool (empty)
local 5GB
> show dbs
admin 5GB
bowtiesarecool 5GB
local 5GB
> use bowtiesarecool
switched to db bowtiesarecool
> show collections
system.profile
> db.system.profile.find()
{ "ts" : ISODate("2011-09-14T01:37:04.458Z"), "info" : "query admin.$cmd ntoreturn:1 command:
reslen:308 bytes:292", "millis" : 0 }
> exit
bye
- depends on
-
SERVER-2080 Connecting to an authenticated server creates the database namespace regardless of success or failure.
- Closed