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

Don't enable custom data_path for backwards compatibility tests #9119

Merged
merged 1 commit into from Dec 31, 2014

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Dec 31, 2014

Since some nodes in the test may not support the feature, it should be
disabled in the random tests for all the BackwardsCompatIntegrationTests

This also adds a check in MetaDataCreateIndexService for all nodes to
be at least 1.5.0+ when creating an index with a custom data_path. It
will only work if the 1.5.0 node is the master in the cluster, but it is
better protection than nothing.

@dakrone
Copy link
Member Author

dakrone commented Dec 31, 2014

Note that this PR is only for the 1.x branch, not master.

// Backwards compatibility tests cannot use custom data paths, because
// some nodes in the cluster may not support the setting, so this is
// set to false for all backwards integration tests
return false;
Copy link
Member

Choose a reason for hiding this comment

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

can we make this depend on the version so that with future versions that do support it we won't have to go back and enable it? We do this already for other features.

@javanna
Copy link
Member

javanna commented Dec 31, 2014

LGTM

Since some nodes in the test may not support the feature, it should be
disabled in the random tests for all the BackwardsCompatIntegrationTests

This also adds a check in `MetaDataCreateIndexService` for all nodes to
be at least 1.5.0+ when creating an index with a custom data_path. It
will only work if the 1.5.0 node is the master in the cluster, but it is
better protection than nothing.
@dakrone dakrone merged commit 47f50e4 into elastic:1.x Dec 31, 2014
@clintongormley clintongormley added >test Issues or PRs that are addressing/adding tests and removed review labels Mar 19, 2015
@dakrone dakrone deleted the fix-bwc-custom-path-tests branch April 6, 2015 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Issues or PRs that are addressing/adding tests v1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants