Unreplicated temporary collection creations should use unique names

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.11
    • Affects Version/s: None
    • Component/s: Replication
    • Fully Compatible
    • Repl 2017-07-31
    • 15
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Benety Goh
            Reporter:
            Judah Schvimer
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: