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

resmoke command is not executable

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Tooling & Methods

      resmoke.py would echo command it is about to run, as in:

      [j0] Starting mongod on port 20000...
      PATH=/home/sgmongo/Projects/2021/mongo:/data/multiversion:/home/sgmongo/Projects/2021/mongo/build/install/bin:/home/sgmongo/.local/lib/python3-venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/sgmongo/.local/lib/python3-venv/bin:/home/sgmongo/.local/bin:/home/sgmongo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sgmongo/.dotnet/tools INSTALL_DIR=/home/sgmongo/Projects/2021/mongo/build/install/bin /home/sgmongo/Projects/2021/mongo/build/install/bin/mongod --setParameter enableTestCommands=1 --setParameter logComponentVerbosity={'replication': {'rollback': 2}, 'sharding': {'migration': 2}, 'transaction': 4, 'tenantMigration': 4} --setParameter disableLogicalSessionCacheRefresh=true --setParameter coordinateCommitReturnImmediatelyAfterPersistingDecision=false --setParameter reshardingMinimumOperationDurationMillis=5000 --setParameter transactionLifetimeLimitSeconds=86400 --setParameter maxIndexBuildDrainBatchSize=10 --setParameter testingDiagnosticsEnabled=true --dbpath=/data/db/job0/resmoke --enableMajorityReadConcern=True --port=20000
      [j0] mongod started on port 20000 with pid 2300682.
      

      This command can not be copy/pasted to terminal. The issue is that some arguments contain spaces, namely:

      -setParameter logComponentVerbosity={'replication': {'rollback': 2}, 'sharding': {'migration': 2}, 'transaction': 4, 'tenantMigration': 4} 
      

      I recommend escaping the parameters which have special characters, so that the line can be copied and executed.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: