Skip to content

Conversation

@jtibshirani
Copy link
Contributor

@jtibshirani jtibshirani commented May 9, 2019

This PR removes all constants of the form Version.V_6_7_*, since master no
longer needs to account for them.

Relates to #41164.

@jtibshirani jtibshirani added :Core/Infra/Core Core issues without another label >refactoring v8.0.0 labels May 9, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@rjernst rjernst mentioned this pull request May 9, 2019
10 tasks
@jtibshirani jtibshirani force-pushed the remove-version-constant branch 4 times, most recently from e83b021 to ba3f5ba Compare May 10, 2019 17:14
@jtibshirani jtibshirani force-pushed the remove-version-constant branch from ba3f5ba to 83da48c Compare May 10, 2019 18:33
Copy link
Contributor

@talevy talevy left a comment

Choose a reason for hiding this comment

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

LGTM, just left two comments around random version testing

public void testSnapshotInProgressException() throws IOException {
SnapshotInProgressException orig = new SnapshotInProgressException("boom");
Version version = VersionUtils.randomVersionBetween(random(), Version.V_6_7_0, Version.CURRENT);
Version version = VersionUtils.randomVersionBetween(random(), Version.V_7_0_0, Version.CURRENT);
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to do here, but we could probably replace this so that we do not need to worry about it in the big 7.x refactor.

to something like

Version version = Versionutils.randomVersion()

Copy link
Member

Choose a reason for hiding this comment

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

I think it should be VersionUtils.randomIndexCompatibleVersion(random())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 I'll make this change in the current PR.

// developments
if (randomBoolean()) {
oldNode = addAnotherDataNodeWithVersion(this.clusterService, randomFrom(Version.V_6_7_0, Version.V_7_0_0));
oldNode = addAnotherDataNodeWithVersion(this.clusterService, Version.V_7_0_0);
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be a range like so?

            oldNode = addAnotherDataNodeWithVersion(this.clusterService, VersionUtils.randomVersionBetween(random(), Version.V_7_0_0, Version.V_7_1_0));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense given the comment above, will update this too.

@jtibshirani
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/packaging-sample

@jtibshirani
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/1

@jtibshirani jtibshirani merged commit e572214 into elastic:master May 22, 2019
@jtibshirani jtibshirani deleted the remove-version-constant branch May 22, 2019 03:35
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
This PR removes all constants of the form `Version.V_6_7_*`, since master no
longer needs to account for them.

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.

5 participants