Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29057

Unreplicated temporary collection creations should use unique names

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.11
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2017-07-31
    • Linked BF Score:
      15

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              judah.schvimer Judah Schvimer
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: