-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
Fully Compatible
-
Repl 2017-07-31
-
15
In multiple places we create temporary collections and use in-memory counters to make the names unique. If the node shuts down and starts back up, these names may no longer be unique. We can use a UUID to be more unique.
Here are two examples:
https://github.com/mongodb/mongo/blob/fa2dcc33303dd6a2080c108e121da6984d08a9d6/src/mongo/db/pipeline/document_source_out.cpp#L95-L96
https://github.com/mongodb/mongo/blob/fa2dcc33303dd6a2080c108e121da6984d08a9d6/src/mongo/db/commands/mr.cpp#L310-L314
- is related to
-
SERVER-28382 convertToCapped should use a unique name for its temporary collection
- Closed
- related to
-
SERVER-65711 Use 'regular expression' in database_test.cpp
- Closed
-
SERVER-31749 Clarify the reason temporary unique collection names are made
- Closed