Skip to content

Commit

Permalink
Fix flaky integ test caused by latency of undeploy model (opensearch-…
Browse files Browse the repository at this point in the history
…project#345)

* add 3s sleep before delete model

Signed-off-by: zhichao-aws <[email protected]>

* remove print stack trace

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: zhichao-aws <[email protected]>
  • Loading branch information
zhichao-aws authored Sep 27, 2023
1 parent 7bef7a0 commit 67ced0d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,9 @@ protected void deleteModel(String modelId) {
ImmutableList.of(new BasicHeader(HttpHeaders.USER_AGENT, DEFAULT_USER_AGENT))
);

// after model undeploy returns, the max interval to update model status is 3s in ml-commons CronJob.
Thread.sleep(3000);

makeRequest(
client(),
"DELETE",
Expand Down

0 comments on commit 67ced0d

Please sign in to comment.