[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: |
|
||||||||||||
| 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 |