Mapping IllegalArgumentException to SettingsException extend OpenSearchException in AbstractScopedSettings class#4792
Merged
xuezhou25 merged 23 commits intoopensearch-project:mainfrom Feb 6, 2023
Conversation
…penSearchException in AbstractScopedSettings class Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
andrross
reviewed
Oct 14, 2022
| * | ||
| * @opensearch.internal | ||
| */ | ||
| public class InvalidArgumentException extends OpenSearchException { |
Member
There was a problem hiding this comment.
Can the existing org.opensearch.common.settings.SettingsException class be used here and avoid creating a new one?
It is important that this case returns a BAD_REQUEST error code, so the following would need to be added to SettingsException to make that happen:
@Override
public RestStatus status() {
return RestStatus.BAD_REQUEST;
}
That might be okay because it looks like the existing usages of SettingsException would probably be better as a BAD_REQUEST, but I'm not 100% sure about that.
…o SettingsException Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
dblock
reviewed
Oct 20, 2022
CHANGELOG.md
Outdated
| - Backport Apache Lucene version change for 2.4.0 ([#4677](https://github.com/opensearch-project/OpenSearch/pull/4677)) | ||
| - Refactor Base Action class javadocs to OpenSearch.API ([#4732](https://github.com/opensearch-project/OpenSearch/pull/4732)) | ||
| - Migrate client transports to Apache HttpClient / Core 5.x ([#4459](https://github.com/opensearch-project/OpenSearch/pull/4459)) | ||
| - Mapping IllegalArgumentException to InvalidArgumentException extend OpenSearchException in AbstractScopedSettings class ([#4792](https://github.com/opensearch-project/OpenSearch/pull/4792)) |
Member
There was a problem hiding this comment.
Describe what has changed for the caller instead?
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
…ception # Conflicts: # CHANGELOG.md
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
|
In build 9282: |
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
|
In build 9355, the same failure as above #4792 (comment) |
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Member
|
@xuezhou25 Can you please rebase your branch with the latest commits? |
…ception # Conflicts: # CHANGELOG.md
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
tlfeng
approved these changes
Feb 6, 2023
6 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Mapping IllegalArgumentException to SettingsException extend OpenSearchException in AbstractScopedSettings class so that the helpful error messages can be reported.
Issues Resolved
resolve #4745
Check List
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.