Skip to content
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

add a flag to distinguish duplicate remote model auto deploy and tran… #2410

Merged
merged 2 commits into from
May 6, 2024

Conversation

Zhangxunmt
Copy link
Collaborator

Description

Adding a flag to avoid race condition of automatic deploying and transport deploying remote models, causing temporary Model deployment state errors. When this flag is true, the transport deploy will continue the deploy and do not throw exceptions.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 20:02 — with GitHub Actions Error
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 20:02 — with GitHub Actions Failure
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 20:02 — with GitHub Actions Error
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 20:02 — with GitHub Actions Error
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 20:02 — with GitHub Actions Failure
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 20:49 — with GitHub Actions Error
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 20:49 — with GitHub Actions Error
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 20:49 — with GitHub Actions Failure
@Zhangxunmt Zhangxunmt merged commit f82e148 into opensearch-project:main May 6, 2024
8 of 11 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 6, 2024
#2410)

* add a flag to distinguish duplicate remote model auto deploy and transport deploy

Signed-off-by: Xun Zhang <[email protected]>

* check for NPE for getIsAutoDeploying

Signed-off-by: Xun Zhang <[email protected]>

---------

Signed-off-by: Xun Zhang <[email protected]>
(cherry picked from commit f82e148)
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 6, 2024
#2410)

* add a flag to distinguish duplicate remote model auto deploy and transport deploy

Signed-off-by: Xun Zhang <[email protected]>

* check for NPE for getIsAutoDeploying

Signed-off-by: Xun Zhang <[email protected]>

---------

Signed-off-by: Xun Zhang <[email protected]>
(cherry picked from commit f82e148)
Zhangxunmt added a commit that referenced this pull request May 6, 2024
#2410) (#2411)

* add a flag to distinguish duplicate remote model auto deploy and transport deploy

Signed-off-by: Xun Zhang <[email protected]>

* check for NPE for getIsAutoDeploying

Signed-off-by: Xun Zhang <[email protected]>

---------

Signed-off-by: Xun Zhang <[email protected]>
(cherry picked from commit f82e148)

Co-authored-by: Xun Zhang <[email protected]>
Zhangxunmt added a commit that referenced this pull request May 6, 2024
#2410) (#2412)

* add a flag to distinguish duplicate remote model auto deploy and transport deploy

Signed-off-by: Xun Zhang <[email protected]>

* check for NPE for getIsAutoDeploying

Signed-off-by: Xun Zhang <[email protected]>

---------

Signed-off-by: Xun Zhang <[email protected]>
(cherry picked from commit f82e148)

Co-authored-by: Xun Zhang <[email protected]>
@Zhangxunmt Zhangxunmt temporarily deployed to ml-commons-cicd-env May 6, 2024 21:56 — with GitHub Actions Inactive
@Zhangxunmt Zhangxunmt temporarily deployed to ml-commons-cicd-env May 6, 2024 21:56 — with GitHub Actions Inactive
@Zhangxunmt Zhangxunmt temporarily deployed to ml-commons-cicd-env May 6, 2024 21:56 — with GitHub Actions Inactive
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 21:56 — with GitHub Actions Error
@Zhangxunmt Zhangxunmt temporarily deployed to ml-commons-cicd-env May 6, 2024 21:56 — with GitHub Actions Inactive
@Zhangxunmt Zhangxunmt had a problem deploying to ml-commons-cicd-env May 6, 2024 21:56 — with GitHub Actions Error
dhrubo-os pushed a commit to dhrubo-os/ml-commons that referenced this pull request May 17, 2024
opensearch-project#2410) (opensearch-project#2411)

* add a flag to distinguish duplicate remote model auto deploy and transport deploy

Signed-off-by: Xun Zhang <[email protected]>

* check for NPE for getIsAutoDeploying

Signed-off-by: Xun Zhang <[email protected]>

---------

Signed-off-by: Xun Zhang <[email protected]>
(cherry picked from commit f82e148)

Co-authored-by: Xun Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants