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

fix race confition in index initialization and RestUpdateConnector UT #1852

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

Zhangxunmt
Copy link
Collaborator

@Zhangxunmt Zhangxunmt commented Jan 10, 2024

Description

Fix the issue in #1851, and update the url in the RestUpdateConnector UT.

CI pass depends on the fix in #1846.

CI failed due to:
Tests with failures:

  • org.opensearch.ml.rest.RestMLRemoteInferenceIT.testOpenAIEditsModel
  • org.opensearch.ml.rest.RestMLRemoteInferenceIT.testPredictRemoteModel
 ERROR][o.o.m.e.a.r.RemoteModel  ] [integTest-0] Failed to call remote model.
org.opensearch.OpenSearchStatusException: Error from remote service: {
     "error": {
         "message": "The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations",
         "type": "invalid_request_error",
         "param": null,
         "code": "model_not_found"
     }
 }

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 merged commit 19c93b1 into opensearch-project:main Jan 12, 2024
5 of 11 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 12, 2024
Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

ylwu-amzn pushed a commit that referenced this pull request Jan 12, 2024
…#1852) (#1857)

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

Co-authored-by: Xun Zhang <[email protected]>
log.error("Failed to create index " + indexName, e);
internalListener.onFailure(e);
if (e instanceof ResourceAlreadyExistsException
|| (e instanceof OpenSearchWrapperException && e.getCause() instanceof ResourceAlreadyExistsException)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a better one is to use org.opensearch.ExceptionsHelper.unwrap

austintlee pushed a commit to austintlee/ml-commons that referenced this pull request Mar 19, 2024
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.

6 participants