Skip to content

[ML] Maintain ml node attribute for processors as integer for BWC#89896

Merged
droberts195 merged 1 commit intoelastic:mainfrom
dimitris-athanasiou:fix-bwc-issue-with-ml-processor-attribute-switch-to-float
Sep 8, 2022
Merged

[ML] Maintain ml node attribute for processors as integer for BWC#89896
droberts195 merged 1 commit intoelastic:mainfrom
dimitris-athanasiou:fix-bwc-issue-with-ml-processor-attribute-switch-to-float

Conversation

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor

In #89645 I switched the ml node attribute for allocated processors to write a string representation of a double value. However, that means the attribute value cannot be parsed in a mixed cluster version when the node that tries to read it is before 8.5.0.

This commit addresses this problem by introducing a new attribute for the version the has a string representation of the double value and keeps writing the older version of the attribute as integer.

It also refactors the logic of parsing the attribute value given a node in a single place as the logic now involves BWC and the duplication is adding complexity.

In elastic#89645 I switched the ml node attribute for allocated processors
to write a string representation of a double value. However, that
means the attribute value cannot be parsed in a mixed cluster version
when the node that tries to read it is before 8.5.0.

This commit addresses this problem by introducing a new attribute
for the version the has a string representation of the double value
and keeps writing the older version of the attribute as integer.

It also refactors the logic of parsing the attribute value given
a node in a single place as the logic now involves BWC and the
duplication is adding complexity.
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Sep 7, 2022
Copy link
Copy Markdown

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

@droberts195 droberts195 merged commit 9e530e1 into elastic:main Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >non-issue Team:ML Meta label for the ML team v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants