-
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
Fix automatic addition of protocol in discovery endpoint #11612
Conversation
Signed-off-by: Yanlong He <[email protected]>
Compatibility status:Checks if related components are compatible with change 1b277ab Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/performance-analyzer.git] |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #11612 +/- ##
============================================
+ Coverage 71.31% 71.34% +0.03%
- Complexity 59155 59162 +7
============================================
Files 4906 4906
Lines 278178 278178
Branches 40421 40421
============================================
+ Hits 198388 198475 +87
+ Misses 63260 63152 -108
- Partials 16530 16551 +21 ☔ View full report in Codecov by Sentry. |
Signed-off-by: heyanlong <[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.
Before we merge this, any reason to hand-roll our own implementation vs. using something like HttpHost.create(endpoint).getHostName()
?
plugins/discovery-ec2/src/test/java/org/opensearch/discovery/ec2/AwsEc2ServiceImplTests.java
Show resolved
Hide resolved
Signed-off-by: 何延龙 <[email protected]>
Yes, we can use |
❌ Gradle check result for b3b210a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: heyanlong <[email protected]>
❕ Gradle check result for 1b277ab: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
That's fine here. Generally I prefer well tested libraries that implement an RFC because, I think, you'll agree that this exact PR is a demonstration of the fact that validation may not be totally trivial. This fixes a bug introduced by rolling out custom validation. |
* Fix #11609 Signed-off-by: Yanlong He <[email protected]> * Fix #11609 Signed-off-by: heyanlong <[email protected]> * Update AwsEc2ServiceImplTests.java Signed-off-by: 何延龙 <[email protected]> * spotless Signed-off-by: heyanlong <[email protected]> --------- Signed-off-by: Yanlong He <[email protected]> Signed-off-by: heyanlong <[email protected]> Signed-off-by: 何延龙 <[email protected]> (cherry picked from commit 2b1c9ae) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…1634) Signed-off-by: Yanlong He <[email protected]> Signed-off-by: heyanlong <[email protected]> Signed-off-by: 何延龙 <[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>
It is like this, for stricter validation, libraries are a better choice. |
@heyanlong feel free to PR a change that uses the library! we can compare looking at the code |
…project#11612) * Fix opensearch-project#11609 Signed-off-by: Yanlong He <[email protected]> * Fix opensearch-project#11609 Signed-off-by: heyanlong <[email protected]> * Update AwsEc2ServiceImplTests.java Signed-off-by: 何延龙 <[email protected]> * spotless Signed-off-by: heyanlong <[email protected]> --------- Signed-off-by: Yanlong He <[email protected]> Signed-off-by: heyanlong <[email protected]> Signed-off-by: 何延龙 <[email protected]>
…project#11612) * Fix opensearch-project#11609 Signed-off-by: Yanlong He <[email protected]> * Fix opensearch-project#11609 Signed-off-by: heyanlong <[email protected]> * Update AwsEc2ServiceImplTests.java Signed-off-by: 何延龙 <[email protected]> * spotless Signed-off-by: heyanlong <[email protected]> --------- Signed-off-by: Yanlong He <[email protected]> Signed-off-by: heyanlong <[email protected]> Signed-off-by: 何延龙 <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Fix #11609
Related Issues
Resolves #11609
Check List
Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)Commit changes are listed out in CHANGELOG.md file (See: Changelog)Public documentation issue/PR createdBy 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.