Skip to content

Hlrc add remote info api#50482

Merged
martijnvg merged 3 commits intoelastic:masterfrom
martijnvg:hlrc_add_remote_info_api
Dec 24, 2019
Merged

Hlrc add remote info api#50482
martijnvg merged 3 commits intoelastic:masterfrom
martijnvg:hlrc_add_remote_info_api

Conversation

@martijnvg
Copy link
Copy Markdown
Member

@martijnvg martijnvg commented Dec 24, 2019

Unreverts the commit that added the remote info api to HLRC (#49657).

The additional change to the original PR, is that org.elasticsearch.client.cluster.RemoteConnectionInfo now parses the initial_connect_timeout field as a string instead of a TimeValue instance.

The reason that this is needed is because that the initial_connect_timeout field in the remote connection api is serialized for human consumption, but not for parsing purposes.
Therefore the HLRC can't parse it correctly (which caused test failures in CI, but not in the PR CI
:( ). The way this field is serialized needs to be changed in the remote connection api, but that is a breaking change. We should wait making this change until rest api versioning is introduced.

Co-Authored-By: j-bean anton.shuvaev91@gmail.com

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Java High Level REST Client)

…ring instead of TimeValue.

The issue is that `initial_connect_timeout` field in the remote connection api is serialized for human consumption, but not for parsing purposes.
Therefore the HLRC can't parse it correctly. The way this field is serialized needs to be changed, but that is a breaking change.
We should wait making this change until rest api versioning is introduced.
@martijnvg martijnvg merged commit a48d19d into elastic:master Dec 24, 2019
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
Unreverts the commit that added the remote info api to HLRC (elastic#49657).

The additional change to the original PR, is that `org.elasticsearch.client.cluster.RemoteConnectionInfo` now parses the initial_connect_timeout field as a string instead of a TimeValue instance.

The reason that this is needed is because that the initial_connect_timeout field in the remote connection api is serialized for human consumption, but not for parsing purposes.
Therefore the HLRC can't parse it correctly (which caused test failures in CI, but not in the PR CI
:( ). The way this field is serialized needs to be changed in the remote connection api, but that is a breaking change. We should wait making this change until rest api versioning is introduced.

Co-Authored-By: j-bean anton.shuvaev91@gmail.com
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.

3 participants