TTL collections not honoring strict timeout

XMLWordPrintableJSON

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

      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:
            Stennie Steneker (Inactive)
            Reporter:
            Christian Amor Kvalheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: