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

Race in tenant_migration_rollback_to_stable.js

    • Fully Compatible
    • ALL
    • Server Serverless 2021-11-29
    • 163

      For SERVER-61137 I added tenant_migration_rollback_to_stable.js:


      In that commit I made a hack, the JS test puts some WT files in /tmp/tenant_migration_test_data, and mongod's code is updated to check for files there. If it finds them, it does a rollback-to-stable operation on them, and the JS test checks for certain log messages. This was a good way to test some new C++ code before the whole PM-2353 is implemented. But it's a problem if the same host is used to run multiple tests: if one test runner executes tenant_migration_rollback_to_stable.js and modifies the files in the tmp dir, while another unrelated test runs, then since mongod always checks the tmp dir for files to import, the two tests will read/write files in the tmp dir at once and a crash is likely.

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            0 Vote for this issue
            2 Start watching this issue