[SERVER-16726] Queries against non-existent databases are no longer logged in the profiler collection Created: 05/Jan/15  Updated: 09/Jul/16  Resolved: 16/Jan/15

Status: Closed
Project: Core Server
Component/s: Diagnostics, Storage
Affects Version/s: 2.7.8, 2.8.0-rc4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kamran K. Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Operating System: ALL
Steps To Reproduce:

var conn = MongoRunner.runMongod({
    profile: 2,  // profile all operations
    verbose: 1
});
var testDB = conn.getDB('test');
 
// In pre-2.7.8 versions, this count triggers the creation
// of the system.profile collection
testDB.foo.find().count();
 
assert.gt(testDB.system.profile.find().count(), 0);
 
MongoRunner.stopMongod(conn);

Participants:

 Description   

Starting with 2.7.8, queries against non-existent databases are no longer logged in the db's system.profile collection.


Generated at Thu Feb 08 03:42:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.