Skip to content

Conversation

@alexey-ivanov-es
Copy link
Contributor

@alexey-ivanov-es alexey-ivanov-es commented Feb 14, 2025

This PR adds support for REST API version V9 in Node Capabilities actions.

  • If no version is specified in the REST request, the transport message will contain 0 as the rest version field, and nodes processing the request will interpret it as their current RestApiVersion.

  • If the REST request includes version explicitly, it will be sent as-is in the transport message, and nodes processing the request will attempt to deserialize it. In a mixed cluster scenario, if a node does not recognize the requested version, it will respond that it does not support the capability.

PR adding support for reading the 0 as rest version from transport message to v8: #122613

@alexey-ivanov-es alexey-ivanov-es added >enhancement :Core/Infra/REST API REST infrastructure and utilities auto-backport Automatically create backport pull requests when merged v9.0.0 v9.1.0 labels Feb 14, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @alexey-ivanov-es, I've created a changelog YAML for you.

// Fixme: lies! all lies!
out.writeVInt(8);
// out.writeVInt(restApiVersion.major);
if (restApiVersionMajor == null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a new TransportVersion? Format of the message doesn't change, but there is a change in how value is handled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Core/Infra/REST API REST infrastructure and utilities >enhancement v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants