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

TTL collections not honoring strict timeout

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.1.2
    • None
    • None
    • OS X 10.7.4
    • OS X

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: