-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Addressing 'org.apache.hc.core5.http.ParseException: Invalid protocol version' under JDK 16+ #4827
Addressing 'org.apache.hc.core5.http.ParseException: Invalid protocol version' under JDK 16+ #4827
Conversation
… version' under JDK 16+ Signed-off-by: Andriy Redko <[email protected]>
803855c
to
a9ed595
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
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.
This is all the same setTlsDetailsFactory
code. Want to refactor the default implementation for TlsStrategy
into a helper?
CHANGELOG.md
Outdated
@@ -142,6 +142,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||
- Fix decommission status update to non leader nodes ([4800](https://github.com/opensearch-project/OpenSearch/pull/4800)) | |||
- Fix recovery path for searchable snapshots ([4813](https://github.com/opensearch-project/OpenSearch/pull/4813)) | |||
- Fix bug in AwarenessAttributeDecommissionIT([4822](https://github.com/opensearch-project/OpenSearch/pull/4822)) | |||
- Addressing 'org.apache.hc.core5.http.ParseException: Invalid protocol version' under JDK 16+ ([#4827](https://github.com/opensearch-project/OpenSearch/pull/4827)) |
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.
Can just say Fix
@@ -429,6 +433,13 @@ public HttpAsyncClientBuilder customizeHttpClient( | |||
HttpAsyncClientBuilder httpClientBuilder) { | |||
final TlsStrategy tlsStrategy = ClientTlsStrategyBuilder.create() | |||
.setSslContext(sslContext) | |||
// See please https://issues.apache.org/jira/browse/HTTPCLIENT-2219 |
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.
Nit: just say "see ..."
I don't know to be honest (I don't see much value out of it), that's not the kind of helper one wants to make public (since it is used in a few modules and packages), more like workaround |
Signed-off-by: Andriy Redko <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
… version' under JDK 16+ (opensearch-project#4827) * Addressing 'org.apache.hc.core5.http.ParseException: Invalid protocol version' under JDK 16+ Signed-off-by: Andriy Redko <[email protected]> * Addressing code review comments Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Andriy Redko <[email protected]>
Signed-off-by: Andriy Redko [email protected]
Description
When using JDK 16+, the
org.apache.hc.core5.http.ParseException: Invalid protocol version
is being thrown.Issues Resolved
N/A
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.