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

Documents deleted by TTL are not reflected in deleted docs in serverStatus nor db.currentOp()

    • Query Execution

      While debugging a cluster with degraded performance I noticed very high lock usage and disk utilisation. Only when I looked at db.currentOp(true) to see ALL queries running (including background threads and such) I found the TTL query.

      It would be nice if this query would be revealed at db.currentOp() (without the flag) and more importantly, the deleted documents will be revealed in serverStatus and therefore mongostat.

      I understand this might not be a bug and it works as designed, and serverStatus contains the number of deleted documents through TTL under metrics.ttl.deleted but it's still confusing.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            alonho Alon Horev
            Votes:
            3 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: