summaryrefslogtreecommitdiff
path: root/buildscripts/antithesis
diff options
context:
space:
mode:
authorTausif Rahman <tausif.rahman@mongodb.com>2022-08-22 21:09:09 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-22 22:47:18 +0000
commit3008f1e4d78dcc72d522b445450fda19e8fb5991 (patch)
treec365b9e01dff70118903f437846eeb17cac41ebd /buildscripts/antithesis
parentaee98e08bc61c76abdf21fc9e8e1b508fab87251 (diff)
downloadmongo-3008f1e4d78dcc72d522b445450fda19e8fb5991.tar.gz
SERVER-68659 Fix Antithesis failures
Diffstat (limited to 'buildscripts/antithesis')
-rw-r--r--buildscripts/antithesis/topologies/sharded_cluster/scripts/mongos_init.py3
-rw-r--r--buildscripts/antithesis/topologies/sharded_cluster/scripts/workload_init.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/buildscripts/antithesis/topologies/sharded_cluster/scripts/mongos_init.py b/buildscripts/antithesis/topologies/sharded_cluster/scripts/mongos_init.py
index 0d3aa7cfc8d..2327989cfb3 100644
--- a/buildscripts/antithesis/topologies/sharded_cluster/scripts/mongos_init.py
+++ b/buildscripts/antithesis/topologies/sharded_cluster/scripts/mongos_init.py
@@ -1,6 +1,7 @@
"""Script to configure a sharded cluster in Antithesis from the mongos container."""
import json
import subprocess
+from time import sleep
from utils import mongo_process_running, retry_until_success
CONFIGSVR_CONFIG = {
@@ -155,4 +156,4 @@ retry_until_success(
})
while True:
- continue
+ sleep(10)
diff --git a/buildscripts/antithesis/topologies/sharded_cluster/scripts/workload_init.py b/buildscripts/antithesis/topologies/sharded_cluster/scripts/workload_init.py
index 3784825ba54..971cedea74a 100644
--- a/buildscripts/antithesis/topologies/sharded_cluster/scripts/workload_init.py
+++ b/buildscripts/antithesis/topologies/sharded_cluster/scripts/workload_init.py
@@ -1,3 +1,5 @@
"""Script to initialize a workload container in Antithesis."""
+from time import sleep
+
while True:
- continue
+ sleep(10)