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

Tests: add delete-by-query into translog in OldIndexBackwardsCompatibilityTests #10266

Closed

Conversation

mikemccand
Copy link
Contributor

This PR just improves our back compat tests in preparation for #10067. It's a standalone test improvement and I think we should push it first since when I deleted DBQ entirely in #10067, no tests failed when I broke back compat.

I fixed create-bwc-index.py to add a delete-by-query into the translog so that on upgrade the translog must be replayed, and I also fixed OldIndexBackwardsCompatibilityTests to confirm the expected documents are in fact deleted on upgrade.

I confirmed that if I intentionally break the translog replay of DBQ in master, OldIndexBackwardsCompatibilityTests in fact fails (good).

However, I hit a pre-existing back-compat bug caused long ago by #4074. I opened #10262 for this but I'm not sure how to fix it... for now I worked around it here by avoiding DBQ in translog for version <= 1.0.0 Beta2.

I also fixed get-bwc-version.py to special case 1.2.0 and pull that from maven instead of download.elasticsearch.org.

@rjernst
Copy link
Member

rjernst commented Mar 26, 2015

LGTM

mikemccand added a commit that referenced this pull request Mar 26, 2015
mikemccand added a commit that referenced this pull request Mar 26, 2015
@clintongormley clintongormley added the >test Issues or PRs that are addressing/adding tests label Apr 9, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
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.1 v1.6.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants