Skip to content

Commit

Permalink
[ML] Wait for ML indices in rolling upgrade tests (#30615)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed May 16, 2018
1 parent e6ee1bb commit 8aadf66
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ setup:
xpack.ml.close_job:
job_id: mixed-cluster-job

# Wait for indices to be fully allocated before
# killing the node
- do:
cluster.health:
index: [".ml-state", ".ml-anomalies-shared"]
wait_for_status: green

---
"Test get job with rules":

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
job_id: old-cluster-job
- match: { count: 1 }

# Wait for indices to be fully allocated before
# killing the node
- do:
cluster.health:
index: [".ml-state", ".ml-anomalies-shared"]
wait_for_status: green

---
"Put job on the old cluster with the default model memory limit and post some data":
- do:
Expand Down Expand Up @@ -96,6 +103,13 @@
job_id: no-model-memory-limit-job
- match: { count: 201 }

# Wait for indices to be fully allocated before
# killing the node
- do:
cluster.health:
index: [".ml-state", ".ml-anomalies-shared"]
wait_for_status: green

---
"Put job with empty strings in the configuration":
- do:
Expand Down

0 comments on commit 8aadf66

Please sign in to comment.