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] system error handling #2021

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport c2a1d82 from #1893

* system error handling

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

* remove NullPointerException from client error

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

* replace jsonobject with ObjectMapper

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

* add more UT

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

* fix format issue

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

* spotless

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

---------

Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit c2a1d82)
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (f41d8a0) 82.52% compared to head (3033174) 82.54%.

Files Patch % Lines
...va/org/opensearch/ml/rest/RestMLExecuteAction.java 68.75% 4 Missing and 1 partial ⚠️
...va/org/opensearch/ml/utils/error/ErrorMessage.java 95.23% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #2021      +/-   ##
============================================
+ Coverage     82.52%   82.54%   +0.02%     
- Complexity     5577     5594      +17     
============================================
  Files           540      542       +2     
  Lines         22454    22503      +49     
  Branches       2286     2290       +4     
============================================
+ Hits          18531    18576      +45     
- Misses         2990     2994       +4     
  Partials        933      933              
Flag Coverage Δ
ml-commons 82.54% <88.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jngz-es jngz-es merged commit a9af85f into 2.x Feb 6, 2024
12 of 15 checks passed
@github-actions github-actions bot deleted the backport/backport-1893-to-2.x branch February 6, 2024 10:11
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.

2 participants