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] Changes in invalid input handling #375

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link

Backport e1f41bb from #373

1. Switch exception type from OpenSearchException to IllegalArgumentException for invalid endpoint
2. Add cluster state validation for update API

Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit e1f41bb)
@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #375 (b636389) into 2.x (4f7a585) will decrease coverage by 0.02%.
Report is 1 commits behind head on 2.x.
The diff coverage is 93.33%.

@@             Coverage Diff              @@
##                2.x     #375      +/-   ##
============================================
- Coverage     88.50%   88.49%   -0.02%     
- Complexity      746      751       +5     
============================================
  Files            91       92       +1     
  Lines          2697     2711      +14     
  Branches        215      220       +5     
============================================
+ Hits           2387     2399      +12     
- Misses          230      232       +2     
  Partials         80       80              
Files Changed Coverage Δ
...rch/geospatial/ip2geo/jobscheduler/Datasource.java 96.56% <ø> (+0.76%) ⬆️
...atial/ip2geo/jobscheduler/DatasourceExtension.java 100.00% <ø> (ø)
...spatial/ip2geo/action/DeleteDatasourceRequest.java 91.66% <66.66%> (+0.75%) ⬆️
...h/geospatial/ip2geo/common/ParameterValidator.java 90.00% <90.00%> (ø)
...geospatial/ip2geo/action/PutDatasourceRequest.java 98.24% <100.00%> (+4.41%) ⬆️
...spatial/ip2geo/action/UpdateDatasourceRequest.java 100.00% <100.00%> (ø)
...ip2geo/action/UpdateDatasourceTransportAction.java 91.02% <100.00%> (-3.65%) ⬇️
...opensearch/geospatial/ip2geo/dao/GeoIpDataDao.java 87.40% <100.00%> (+0.09%) ⬆️
...h/geospatial/ip2geo/processor/Ip2GeoProcessor.java 93.02% <100.00%> (+0.91%) ⬆️

... and 1 file with indirect coverage changes

@junqiu-lei
Copy link
Member

Please check on the CI failure

@heemin32
Copy link
Collaborator

Flaky test. Rerunning it.

@heemin32 heemin32 merged commit 7a80ae0 into 2.x Jul 31, 2023
11 of 21 checks passed
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.

2 participants