-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 8.3.4
-
Component/s: None
-
None
-
Storage Execution
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
In the latest version 8.3.4:
db.createCollection("coll");
db.coll.createIndex({a:1}, { expireAfterSeconds: 1 });
db.coll.dropIndex({a:1});
db.coll.createIndex({a:1}, { expireAfterSeconds: 1 });
db.coll.dropIndex({a:1});
db.coll.createIndex({a:1}, { expireAfterSexpireAfterSeconds: 1 });
db.coll.dropIndex({a:1});
db.coll.createIndex({a:1}, { expireAfterSeconds: 1 });
db.setLogLevel(1);
Repeatedly creating and dropping the TTL index causes the TTL index to run for multiple rounds within the same cycle.
The expected behavior is that it runs only once per cycle.
more mongo.log | grep -i a_1 | grep 22533
