Description
It does not really make sense to create a capped collection with additional constraints such as having unique indexes. In a replica set, capped collections are trimmed on a per-insert basis on every node and this may cause issues enforcing the unique index constraints as inserts are replicated from the primary to secondary nodes.