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.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.4
    • None
    • None
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: