Skip to content

Backport: add remote info to the HLRC#50483

Merged
martijnvg merged 1 commit intoelastic:7.xfrom
martijnvg:backport_49657
Dec 24, 2019
Merged

Backport: add remote info to the HLRC#50483
martijnvg merged 1 commit intoelastic:7.xfrom
martijnvg:backport_49657

Conversation

@martijnvg
Copy link
Copy Markdown
Member

Backport for: #50482

The additional change to the original PR (#49657), 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

The additional change to the original PR (elastic#49657), 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)

@martijnvg martijnvg merged commit 10ed1ae into elastic:7.x Dec 24, 2019
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.

2 participants