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

Make external sort tests into standalone unit tests, outside of dbtests/test.exe.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      1. Implement an RAII "temp directory" object that creates a temporary directory on creation, and deletes it and its contents when it goes out of scope (or logs if it fails to delete).
      2. Extend the unittest framework to take an optional --temppath command line argument, falling back to $TMP then $TEMP then working directory, for choosing the root location for temporary directories.
      3. Make the working path of the external sorter a construction parameter, rather than the global "dbpath" variable, but have MongoD always use dbapth + "/_tmp" for the sorter work area.
      4. Pull the sorter test out of test.exe, utilizing 1-3 above.
      5. Update smoke.py to pass an apporpriate --temppath to C++ unittests. Pick a default that makes the sorter test work like it does today, except not in test.exe.
      6. Update MCI builders as desired to supply a different temp path, and perhaps to clean up after it.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: