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

TTL collections not honoring strict timeout

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      OS X 10.7.4
    • OS X

      use test2
      db.test.ensureIndex(

      {createdAt:1}

      ,

      {expireAfterSeconds:1}

      )
      db.test.insert(

      {createdAt:new Date()}

      )
      db.test.insert(

      {createdAt:new Date()}

      )
      db.test.insert(

      {createdAt:new Date()}

      )

      I keep seeing them in the collection even after 5 seconds and then suddenly all gone. I don't know if this is expected behavior or if the expireAfterSeconds is supposed to be a hard limit.

            Assignee:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Reporter:
            christkv Christian Amor Kvalheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: