[SERVER-57187] resmoke command is not executable Created: 25/May/21  Updated: 06/Dec/22  Resolved: 28/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Sergey Galtsev (Inactive) Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-55147 resmoke should shlex.quote() commands... Closed
is duplicated by SERVER-55147 resmoke should shlex.quote() commands... Closed
Assigned Teams:
Server Tooling & Methods
Participants:

 Description   

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.


Generated at Thu Feb 08 05:41:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.