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

Conversation

Projects
None yet
5 participants
@s1monw
Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

mikemccand commented Jul 29, 2014

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Contributor

jpountz commented Jul 29, 2014

LGTM

@martijnvg

This comment has been minimized.

Copy link
Member

martijnvg commented Jul 29, 2014

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

[TEST] Add basic upgrade test script
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 added a commit that referenced this pull request Jul 29, 2014

[TEST] Add basic upgrade test script
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 s1monw:py_bwc_tests branch Jul 29, 2014

@clintongormley clintongormley changed the title [TEST] Add basic upgrade test script Resiliency: Add basic upgrade test script Sep 8, 2014

@clintongormley clintongormley removed the >feature label Jun 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.