-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fixing error: adding a new/forgotten parameter to the configuration for checking the config on startup in plugins/repository-s3 #7924
Conversation
Fixing error: adding a new parameter to the configuration for checking the config on startup. Signed-off-by: Konstantin Gerasimenko <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nice-redbull could you please:
- add CHANGELOG.md entry (under
Unreleased 2.x
) - add test case for the issue
ok
I have no idea how to do it :-) maybe a @willyborankin will help? |
Signed-off-by: Konstantin Gerasimenko <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
…pted Signed-off-by: Andriy Redko <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #7924 +/- ##
============================================
+ Coverage 70.75% 70.82% +0.07%
- Complexity 56236 56245 +9
============================================
Files 4689 4689
Lines 266324 266324
Branches 39087 39087
============================================
+ Hits 188425 188626 +201
+ Misses 61949 61668 -281
- Partials 15950 16030 +80
|
Gradle Check (Jenkins) Run Completed with:
|
…or checking the config on startup in plugins/repository-s3 (#7924) * Update S3RepositoryPlugin.java Fixing error: adding a new parameter to the configuration for checking the config on startup. Signed-off-by: Konstantin Gerasimenko <[email protected]> * Update CHANGELOG.md Signed-off-by: Konstantin Gerasimenko <[email protected]> * Add proxy settings type to test case settings to make sure it is accepted Signed-off-by: Andriy Redko <[email protected]> --------- Signed-off-by: Konstantin Gerasimenko <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: Andriy Redko <[email protected]> (cherry picked from commit d55813e) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…or checking the config on startup in plugins/repository-s3 (#7924) (#7929) * Update S3RepositoryPlugin.java Fixing error: adding a new parameter to the configuration for checking the config on startup. * Update CHANGELOG.md * Add proxy settings type to test case settings to make sure it is accepted --------- (cherry picked from commit d55813e) Signed-off-by: Konstantin Gerasimenko <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Andriy Redko <[email protected]>
This could use a test @nice-redbull, maybe try writing one? The initial problem states that when setting up the proxy, you should be getting a "the proxy.type is required" error. If I undo this change no tests fail, so we can easily re-introduce a regression if we're not careful. |
@dblock I have added proxy to test settings here [1] - the tests are failing on |
Aha I see, thanks @reta! |
…or checking the config on startup in plugins/repository-s3 (opensearch-project#7924) * Update S3RepositoryPlugin.java Fixing error: adding a new parameter to the configuration for checking the config on startup. Signed-off-by: Konstantin Gerasimenko <[email protected]> * Update CHANGELOG.md Signed-off-by: Konstantin Gerasimenko <[email protected]> * Add proxy settings type to test case settings to make sure it is accepted Signed-off-by: Andriy Redko <[email protected]> --------- Signed-off-by: Konstantin Gerasimenko <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: Andriy Redko <[email protected]>
…or checking the config on startup in plugins/repository-s3 (opensearch-project#7924) (opensearch-project#7929) * Update S3RepositoryPlugin.java Fixing error: adding a new parameter to the configuration for checking the config on startup. * Update CHANGELOG.md * Add proxy settings type to test case settings to make sure it is accepted --------- (cherry picked from commit d55813e) Signed-off-by: Konstantin Gerasimenko <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Andriy Redko <[email protected]>
…or checking the config on startup in plugins/repository-s3 (opensearch-project#7924) * Update S3RepositoryPlugin.java Fixing error: adding a new parameter to the configuration for checking the config on startup. Signed-off-by: Konstantin Gerasimenko <[email protected]> * Update CHANGELOG.md Signed-off-by: Konstantin Gerasimenko <[email protected]> * Add proxy settings type to test case settings to make sure it is accepted Signed-off-by: Andriy Redko <[email protected]> --------- Signed-off-by: Konstantin Gerasimenko <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: Andriy Redko <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Fixing error: adding a new/forgotten parameter to the configuration for checking the config on startup.
The error fixes the situation that arises when configuring a proxy for accessing the S3 service. When setting up the proxy, the proxy.type is required, but this parameter causes an error upon node startup. This change rectifies the current situation and ensures behavior as described in the documentation.
This modification has already been tested on our systems.
Related Issues
#2160
s3.client.default.proxy.type
repository-s3
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.