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

Resiliency: Add basic upgrade test script #7074

Merged
merged 1 commit into from Jul 29, 2014
Merged

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Jul 29, 2014

This commit adds a basic full cluster restart upgrade script that tests
upgrades of elasticsearch across major version. In contrast to the BWC
tests we are running using the java test framework this test uses a python
script as well as the REST APIs to ensure upgrades across major version work and
indices are compatible.

The upgrade test starts 2 or more nodes of an old elasticserach version, indexes
a random number of documents into the running nodes and executes a full cluster restart.
After the nodes are recovered a small set of basic checks are executed to ensure all
documents are still searchable and field data can be loaded etc.

@mikemccand
Copy link
Contributor

LGTM

This is also a nice (expert) example of using the Python client.

Thank you for upgrading to Python 3 and adding the install instructions; I was able to run this successfully! For some reason I struggle to install elasticsearch python client under Python 2.x: I hit a strange exception from "pip install elasticsearch".

@jpountz
Copy link
Contributor

jpountz commented Jul 29, 2014

Worked for me on both python 2.6.1 and 3.4.0. Would be nice to have a message confirming that everything went well on the standard out when the test ends?

@jpountz
Copy link
Contributor

jpountz commented Jul 29, 2014

LGTM

@martijnvg
Copy link
Member

Tested it with python 2.7 and 3.4 and it works well. LGTM

This commit adds a basic full cluster restart upgrade script that tests
upgrades of elasticsearch across major version. In contrast to the BWC
tests we are running using the java test framework this test uses a python
script as well as the REST APIs to ensure upgrades across major version work and
indices are compatible.

The upgrade test starts 2 or more nodes of an old elasticserach version, indexes
a random number of documents into the running nodes and executes a full cluster restart.
After the nodes are recovered a small set of basic checks are executed to ensure all
documents are still searchable and field data can be loaded etc.

Closes elastic#7074
s1monw added a commit that referenced this pull request Jul 29, 2014
This commit adds a basic full cluster restart upgrade script that tests
upgrades of elasticsearch across major version. In contrast to the BWC
tests we are running using the java test framework this test uses a python
script as well as the REST APIs to ensure upgrades across major version work and
indices are compatible.

The upgrade test starts 2 or more nodes of an old elasticserach version, indexes
a random number of documents into the running nodes and executes a full cluster restart.
After the nodes are recovered a small set of basic checks are executed to ensure all
documents are still searchable and field data can be loaded etc.

Closes #7074
@s1monw s1monw merged commit 7343ae1 into elastic:master Jul 29, 2014
@s1monw s1monw deleted the py_bwc_tests branch July 29, 2014 11:39
@clintongormley clintongormley changed the title [TEST] Add basic upgrade test script Resiliency: Add basic upgrade test script Sep 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resiliency >test Issues or PRs that are addressing/adding tests v1.4.0.Beta1 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants