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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.7.8, 2.8.0-rc4
    • 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);

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: