Race condition: --parallelize-phases causes mongodb_setup to delete custom mongorestore binary downloaded by workload_setup

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-03-30
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When --parallelize-phases is active, workload_setup downloads mongorestore-viewless-timeseries-compatible into mongodb/bin/. In parallel, mongodb_setup runs rm -rf ./mongodb before extracting the MongoDB tarball (download_mongodb.py#L772). Depending on timing, the rm -rf may delete the already-downloaded binary, causing pre_task to fail with:

      bash: mongodb/bin/mongorestore-viewless-timeseries-compatible: No such file or directory

      Affected tasks: tsbs_steady_state_low, tsbs_query_finance, tsbs_query_finance_locust, tsbs_query_genny.

      Fix: Change the download path from mongodb/bin/ to custom_binaries/ so it is not wiped by mongodb_setup. One-line change to mongorestore_viewless_timeseries_binary in workload_setup.2024-05.yml.

            Assignee:
            Tommaso Tocci
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: