Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
58093e34
Commit
58093e34
authored
4 years ago
by
Björn Vonheiden
Browse files
Options
Downloads
Patches
Plain Diff
Enhance reset of zookeeper in run uc py
parent
8be6039e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
execution/run_uc.py
+8
-8
8 additions, 8 deletions
execution/run_uc.py
with
8 additions
and
8 deletions
execution/run_uc.py
+
8
−
8
View file @
58093e34
...
@@ -407,8 +407,8 @@ def reset_zookeeper():
...
@@ -407,8 +407,8 @@ def reset_zookeeper():
'
--
'
,
'
--
'
,
'
bash
'
,
'
bash
'
,
'
-c
'
,
'
-c
'
,
'
zookeeper-shell my-confluent-cp-zookeeper:2181
ls /
'
'
zookeeper-shell my-confluent-cp-zookeeper:2181
get
'
# "| awk -F[\]\[] '{print $2}'"
+
'
/workload-generation
'
]
]
# Wait for configuration deletion
# Wait for configuration deletion
...
@@ -425,12 +425,12 @@ def reset_zookeeper():
...
@@ -425,12 +425,12 @@ def reset_zookeeper():
text
=
True
)
text
=
True
)
logging
.
debug
(
output
)
logging
.
debug
(
output
)
if
'
workload-generation
'
in
output
.
stdout
:
if
output
.
returncode
==
1
:
# Means data not available anymore
print
(
'
ZooKeeper reset was not successful. Retrying in 5s.
'
)
time
.
sleep
(
5
)
else
:
print
(
'
ZooKeeper reset was successful.
'
)
print
(
'
ZooKeeper reset was successful.
'
)
break
break
else
:
print
(
'
ZooKeeper reset was not successful. Retrying in 5s.
'
)
time
.
sleep
(
5
)
return
return
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment