-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix long pending issue when deleting model #1882
Merged
zane-neo
merged 10 commits into
opensearch-project:main
from
zane-neo:delete-model-hang-fix
Feb 7, 2024
Merged
Fix long pending issue when deleting model #1882
zane-neo
merged 10 commits into
opensearch-project:main
from
zane-neo:delete-model-hang-fix
Feb 7, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zane-neo
requested review from
b4sjoo,
dhrubo-os,
jngz-es,
model-collapse,
rbhavna,
ylwu-amzn,
Zhangxunmt,
austintlee and
HenryL27
as code owners
January 17, 2024 04:17
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:18 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:18 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:18 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:18 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:18 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:18 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:41 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:41 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
January 17, 2024 04:41 — with
GitHub Actions
Inactive
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 17, 2024 06:02 — with
GitHub Actions
Error
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 17, 2024 06:02 — with
GitHub Actions
Failure
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 17, 2024 06:02 — with
GitHub Actions
Error
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 17, 2024 06:02 — with
GitHub Actions
Failure
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 17, 2024 06:02 — with
GitHub Actions
Failure
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 17, 2024 06:02 — with
GitHub Actions
Error
Github CI failed
|
zane-neo
force-pushed
the
delete-model-hang-fix
branch
from
January 26, 2024 07:44
3725de3
to
337f1d0
Compare
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 26, 2024 07:44 — with
GitHub Actions
Error
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 26, 2024 07:44 — with
GitHub Actions
Failure
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 26, 2024 07:44 — with
GitHub Actions
Error
zane-neo
had a problem deploying
to
ml-commons-cicd-env
January 26, 2024 07:44 — with
GitHub Actions
Error
Signed-off-by: zane-neo <[email protected]>
zane-neo
had a problem deploying
to
ml-commons-cicd-env
February 7, 2024 09:27 — with
GitHub Actions
Error
zane-neo
had a problem deploying
to
ml-commons-cicd-env
February 7, 2024 09:27 — with
GitHub Actions
Failure
zane-neo
had a problem deploying
to
ml-commons-cicd-env
February 7, 2024 09:27 — with
GitHub Actions
Error
zane-neo
had a problem deploying
to
ml-commons-cicd-env
February 7, 2024 09:27 — with
GitHub Actions
Error
zane-neo
had a problem deploying
to
ml-commons-cicd-env
February 7, 2024 09:27 — with
GitHub Actions
Error
zane-neo
had a problem deploying
to
ml-commons-cicd-env
February 7, 2024 09:27 — with
GitHub Actions
Failure
Signed-off-by: zane-neo <[email protected]>
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 09:53 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 09:53 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 09:53 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 09:53 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 09:53 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 09:53 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 10:22 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 10:22 — with
GitHub Actions
Inactive
zane-neo
temporarily deployed
to
ml-commons-cicd-env
February 7, 2024 10:22 — with
GitHub Actions
Inactive
ylwu-amzn
reviewed
Feb 7, 2024
@@ -174,7 +175,7 @@ protected MLUndeployModelNodesResponse newResponse( | |||
deployToAllNodes.put(modelId, false); | |||
} | |||
updateRequest.index(ML_MODEL_INDEX).id(modelId).doc(updateDocument); | |||
bulkRequest.add(updateRequest); | |||
bulkRequest.add(updateRequest).setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you see anywhere else missed this?
ylwu-amzn
approved these changes
Feb 7, 2024
model-collapse
approved these changes
Feb 7, 2024
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Feb 7, 2024
* Fix long pending issue when deleting model Signed-off-by: zane-neo <[email protected]> * Refine the delete model code Signed-off-by: zane-neo <[email protected]> * refactor delete model flow to make sure all dependent resources are deleted together with model metadata Signed-off-by: zane-neo <[email protected]> * fix minor issue to make sure only non-remote model will deelete chunks Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * fix failure UTs Signed-off-by: zane-neo <[email protected]> * Change to delete model metadata first Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * Remove remote function check Signed-off-by: zane-neo <[email protected]> * Fix failure UTs Signed-off-by: zane-neo <[email protected]> --------- Signed-off-by: zane-neo <[email protected]> (cherry picked from commit f18eaf3)
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Feb 7, 2024
* Fix long pending issue when deleting model Signed-off-by: zane-neo <[email protected]> * Refine the delete model code Signed-off-by: zane-neo <[email protected]> * refactor delete model flow to make sure all dependent resources are deleted together with model metadata Signed-off-by: zane-neo <[email protected]> * fix minor issue to make sure only non-remote model will deelete chunks Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * fix failure UTs Signed-off-by: zane-neo <[email protected]> * Change to delete model metadata first Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * Remove remote function check Signed-off-by: zane-neo <[email protected]> * Fix failure UTs Signed-off-by: zane-neo <[email protected]> --------- Signed-off-by: zane-neo <[email protected]> (cherry picked from commit f18eaf3)
ylwu-amzn
pushed a commit
that referenced
this pull request
Feb 7, 2024
* Fix long pending issue when deleting model Signed-off-by: zane-neo <[email protected]> * Refine the delete model code Signed-off-by: zane-neo <[email protected]> * refactor delete model flow to make sure all dependent resources are deleted together with model metadata Signed-off-by: zane-neo <[email protected]> * fix minor issue to make sure only non-remote model will deelete chunks Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * fix failure UTs Signed-off-by: zane-neo <[email protected]> * Change to delete model metadata first Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * Remove remote function check Signed-off-by: zane-neo <[email protected]> * Fix failure UTs Signed-off-by: zane-neo <[email protected]> --------- Signed-off-by: zane-neo <[email protected]> (cherry picked from commit f18eaf3) Co-authored-by: zane-neo <[email protected]>
ylwu-amzn
pushed a commit
that referenced
this pull request
Feb 7, 2024
* Fix long pending issue when deleting model Signed-off-by: zane-neo <[email protected]> * Refine the delete model code Signed-off-by: zane-neo <[email protected]> * refactor delete model flow to make sure all dependent resources are deleted together with model metadata Signed-off-by: zane-neo <[email protected]> * fix minor issue to make sure only non-remote model will deelete chunks Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * fix failure UTs Signed-off-by: zane-neo <[email protected]> * Change to delete model metadata first Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * Remove remote function check Signed-off-by: zane-neo <[email protected]> * Fix failure UTs Signed-off-by: zane-neo <[email protected]> --------- Signed-off-by: zane-neo <[email protected]> (cherry picked from commit f18eaf3) Co-authored-by: zane-neo <[email protected]>
austintlee
pushed a commit
to austintlee/ml-commons
that referenced
this pull request
Mar 19, 2024
* Fix long pending issue when deleting model Signed-off-by: zane-neo <[email protected]> * Refine the delete model code Signed-off-by: zane-neo <[email protected]> * refactor delete model flow to make sure all dependent resources are deleted together with model metadata Signed-off-by: zane-neo <[email protected]> * fix minor issue to make sure only non-remote model will deelete chunks Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * fix failure UTs Signed-off-by: zane-neo <[email protected]> * Change to delete model metadata first Signed-off-by: zane-neo <[email protected]> * format code Signed-off-by: zane-neo <[email protected]> * Remove remote function check Signed-off-by: zane-neo <[email protected]> * Fix failure UTs Signed-off-by: zane-neo <[email protected]> --------- Signed-off-by: zane-neo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This fixes the occasional pending forever issue of deprovision API in flow framework. When delete model failed, e.g. model status is note allowed to delete, the delete model request is not been responded and flow framework will pending waiting.
Issues Resolved
NA
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.