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

TTL monitoring logs on system profile

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 5.0.4
    • None
    • None
    • ALL
    • Hide

      From mongosh :

      • run `use database-test`
      • run `db.setProfilingLevel(2)`
      • run `db.eventlog.createIndex( { "lastModifiedDate": 1 }, { expireAfterSeconds: 30 } )`
      • run `db.eventlog.insertOne({ lastModifiedDate: new Date() })`
      • Wait one minute
      • run `db.system.profile.find()`
      • There are no information about TTL monitoring
      Show
      From mongosh : run `use database-test` run `db.setProfilingLevel(2)` run `db.eventlog.createIndex( { "lastModifiedDate": 1 }, { expireAfterSeconds: 30 } )` run `db.eventlog.insertOne({ lastModifiedDate: new Date() })` Wait one minute run `db.system.profile.find()` There are no information about TTL monitoring

    Description

      Hello,

      I'm using TTL Indexes (https://docs.mongodb.com/manual/core/index-ttl/#expiration-of-data) The deleting works fine but I want to log the data removed.

      The doc say : `When the TTL thread is active, you will see delete operations in the output of db.currentOp() or in the data collected by the database profiler.` 

      When I display the system profile, There are no information about the TTL and I need to log the trace of the remove.

      I set the profiling level to 2.

      Do you know if it's a bug or I didn't understand the monitoring ?

      Attachments

        Activity

          People

            dmitry.agranat@mongodb.com Dmitry Agranat
            pj-martin@outlook.fr Pierre-Jean Martin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: