Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16726

Queries against non-existent databases are no longer logged in the profiler collection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.8, 2.8.0-rc4
    • Component/s: Diagnostics, Storage
    • Minor Change
    • ALL
    • Hide
      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);
      
      Show
      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);
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

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

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kamran.khan Kamran K. (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: