From 70d4b1db9da96228e4b56477ed0014e630f4f44a Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 26 Oct 2022 19:08:45 +0300 Subject: [PATCH] [#30] grpc: Do not start deleters without registry Signed-off-by: Pavel Karpy --- scenarios/grpc.js | 4 ++++ scenarios/s3.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scenarios/grpc.js b/scenarios/grpc.js index 9c8d0df..1ac66ba 100644 --- a/scenarios/grpc.js +++ b/scenarios/grpc.js @@ -66,6 +66,10 @@ if (read_vu_count > 0) { const delete_vu_count = parseInt(__ENV.DELETERS || '0'); if (delete_vu_count > 0) { + if (!obj_to_delete_selector) { + throw new Error('Positive DELETE worker number without a proper object selector'); + } + scenarios.delete = { executor: 'constant-vus', vus: delete_vu_count, diff --git a/scenarios/s3.js b/scenarios/s3.js index cc8d294..827c936 100644 --- a/scenarios/s3.js +++ b/scenarios/s3.js @@ -65,6 +65,10 @@ if (read_vu_count > 0) { const delete_vu_count = parseInt(__ENV.DELETERS || '0'); if (delete_vu_count > 0) { + if (!obj_to_delete_selector) { + throw 'Positive DELETE worker number without a proper object selector'; + } + scenarios.delete = { executor: 'constant-vus', vus: delete_vu_count,