Skip to content
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

[Transform] re-enable BWC after backport of #70139 #70218

Merged
merged 2 commits into from
Mar 10, 2021

Conversation

hendrikmuhs
Copy link

finish backport of #70139: adapt versions and re-enable BWC

@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Mar 10, 2021
@elasticsearchmachine elasticsearchmachine added the external-contributor Pull request authored by a developer outside the Elasticsearch team label Mar 10, 2021
@elasticmachine
Copy link
Collaborator

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

@hendrikmuhs hendrikmuhs removed the external-contributor Pull request authored by a developer outside the Elasticsearch team label Mar 10, 2021
@@ -151,7 +151,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
out.writeString(id);
// 7.13 introduced the waiting state, in older version report the state as started
if (out.getVersion().before(Version.V_8_0_0) && state.equals(State.WAITING)) { // TODO: V_7_13_0
if (out.getVersion().before(Version.V_7_13_0) && state.equals(State.WAITING)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we simplify this in master? IIUC out.getVersion().before(Version.V_7_13_0) will always be false.

Copy link
Author

Choose a reason for hiding this comment

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

yes, that's correct. The reason why I defer the removal of BWC versioning is ease of backporting. We have tons of that code on master and I am looking forward to remove it. I would like to do this in 1 iteration after we close active transform development on 7.x.

If you look at the outer if, I have to remove the branching, which will result in a mess after backporting. Useful as well: As development happens on master, we would remove the "documentation" about BWC handling and potentially forget to handle it correctly as part of the backport.

@hendrikmuhs hendrikmuhs merged commit 7e60e4d into elastic:master Mar 10, 2021
@hendrikmuhs hendrikmuhs deleted the transform-rolechecks-bwc-done branch March 10, 2021 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml/Transform Transform >non-issue Team:ML Meta label for the ML team v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants