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

[Backport 2.x] Throw errors on model deletion failures #855

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 5c3bf53 from #834

Throws errors on model deletion. Previously we were indicating failure,
but returning 200 response codes. This changes that to throw exceptions
with the correct response code.

Signed-off-by: John Mazanec <[email protected]>
(cherry picked from commit 5c3bf53)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team April 13, 2023 17:36
@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2023

Codecov Report

Merging #855 (d3ac855) into 2.x (c039b73) will decrease coverage by 0.09%.
The diff coverage is 90.47%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x     #855      +/-   ##
============================================
- Coverage     85.20%   85.12%   -0.09%     
- Complexity     1090     1093       +3     
============================================
  Files           152      153       +1     
  Lines          4414     4423       +9     
  Branches        396      395       -1     
============================================
+ Hits           3761     3765       +4     
- Misses          474      479       +5     
  Partials        179      179              
Impacted Files Coverage Δ
...main/java/org/opensearch/knn/indices/ModelDao.java 81.48% <75.00%> (-0.08%) ⬇️
...xception/DeleteModelWhenInTrainStateException.java 100.00% <100.00%> (ø)
...arch/knn/plugin/transport/DeleteModelResponse.java 81.48% <100.00%> (-18.52%) ⬇️
...n/plugin/transport/DeleteModelTransportAction.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@naveentatikonda naveentatikonda merged commit bfb9078 into 2.x Apr 13, 2023
@github-actions github-actions bot deleted the backport/backport-834-to-2.x branch April 13, 2023 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants