[SERVER-28382] convertToCapped should use a unique name for its temporary collection Created: 17/Mar/17  Updated: 13/Jun/17  Resolved: 13/Jun/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Judah Schvimer Assignee: Matthew Russotto
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-29057 Unreplicated temporary collection cre... Closed
Operating System: ALL
Sprint: Repl 2017-05-08, Repl 2017-05-29, Repl 2017-06-19
Participants:
Linked BF Score: 15

 Description   

convertToCapped always uses the same name for the same collection. This is ordinarily fine, but is a problem if the server fails after creating the collection but before renaming it. When the server restarts, it will fassert on unclean startup with "NamespaceExists".



 Comments   
Comment by Matthew Russotto [ 04/May/17 ]

After talking to Judah, we think it makes sense to roll this into SERVER-29057.

Generated at Thu Feb 08 04:17:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.