tools/scylla-nodetool: repair: set the jobThreads request parameter

Although ScyllaDB ignores this request parameter, the Java nodetools
sets it, so it is better to have the native one do the same for
symmetry. It makes testing easier.
Discovered with the more strict request matching introduced in the next
patches.
This commit is contained in:
Botond Dénes
2024-03-14 03:24:39 -04:00
parent 15bea069a9
commit be5a18c07d
2 changed files with 11 additions and 2 deletions

View File

@@ -478,6 +478,11 @@ def test_repair_unused_options(request, nodetool, jobs, full):
if full:
args.append(full)
if jobs:
job_threads = jobs[1]
else:
job_threads = "1"
res = nodetool(*args, expected_requests=[
expected_request("GET", "/storage_service/keyspaces", response=["ks"]),
JMX_COLUMN_FAMILIES_REQUEST,
@@ -492,7 +497,7 @@ def test_repair_unused_options(request, nodetool, jobs, full):
"incremental": "false",
"pullRepair": "false",
"primaryRange": "false",
"jobThreads": "1"},
"jobThreads": job_threads},
response=1),
expected_request("GET", "/storage_service/repair_async/ks", params={"id": "1"}, response="SUCCESSFUL")])