Skip to content

Remove Version 6 pre-release constants #41517

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

Merged
merged 7 commits into from
May 8, 2019

Conversation

cbuescher
Copy link
Member

Now that master is 8.0, we can remove uses of these constants and the
backcompat code that uses them, since 8 will always walk to 7.0+ nodes.
This PR starts by removing the pre-6 release constants, remove obsolete code
and replacing its occurances in tests where needed.

Relates to #41164

@cbuescher cbuescher added :Core/Infra/Core Core issues without another label >refactoring v8.0.0 labels Apr 25, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@cbuescher cbuescher force-pushed the remove-6.0.x-constant branch from 4e11423 to 352ecd4 Compare April 25, 2019 07:57
@cbuescher cbuescher force-pushed the remove-6.0.x-constant branch from 352ecd4 to c311574 Compare April 25, 2019 16:21
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

Thanks for helping out here! I left a handful of comments. The major issue is we shouldn't really have any new uses of the v7.0.0 constant. Instead, those test uses should be converted to using an appropriate version through VersionUtils, or using Version.CURRENT.minimumIndexCompatibleVersion().

Christoph Büscher added 2 commits April 26, 2019 11:00
@cbuescher
Copy link
Member Author

Thanks @rjernst, I pushed updates that should adress your comments.

@rjernst rjernst mentioned this pull request May 2, 2019
10 tasks
@cbuescher
Copy link
Member Author

@rjernst this would be ready for another look if you have the time

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

Looks better, but there are still some hardcoded constant usages.

@cbuescher
Copy link
Member Author

@rjernst thanks for the update, I pushed another commit that should adress your last comments.

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

Thanks @cbuescher. There are a just a few remaining places I see using the hardcoded version constants.

@cbuescher cbuescher force-pushed the remove-6.0.x-constant branch from d406d64 to 7b84d64 Compare May 8, 2019 00:05
@cbuescher
Copy link
Member Author

@rjernst looks ready for another round.

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

Thanks @cbuescher! LGTM

@cbuescher cbuescher merged commit a3aacc3 into elastic:master May 8, 2019
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request May 9, 2019
…rsing

* elastic/master:
  [ML] relax set upgrade mode test to match what is guaranteed (elastic#41958)
  Add note about ILM action ordering (elastic#41771)
  Remove Version 6 pre-release constants (elastic#41517)
  Mute illegal interval rollup tests
  Add static section whitelist info to api docs generation (elastic#41870)
  Cleanup RollupSearch exceptions, disallow partial results (elastic#41272)
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
Now that master is 8.0, we can remove uses of these constants and the
backcompat code that uses them, since 8 will always walk to 7.0+ nodes.
This PR starts by removing the pre-6 release constants, remove obsolete code
and replacing its occurances in tests where needed.

Relates to elastic#41164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >refactoring v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants