-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Core: delete-by-query fails to replay from translog < 1.0.0 Beta2 #10262
Labels
Comments
s1monw
added a commit
to s1monw/elasticsearch
that referenced
this issue
Jun 3, 2015
This is happening because of elastic#4074 when we required that the top-level "query" is present to delete-by-query requests, but prior to that we required that it is not present. So the translog has a DBQ without "query" and when we try to parse it we hit this exception. This commit adds special handling for pre 1.0.0 indices if we hit parse exception, we try to reparse without a top-level query object to be BWC compatible for these indices. Closes elastic#10262
s1monw
added a commit
that referenced
this issue
Jun 3, 2015
This is happening because of #4074 when we required that the top-level "query" is present to delete-by-query requests, but prior to that we required that it is not present. So the translog has a DBQ without "query" and when we try to parse it we hit this exception. This commit adds special handling for pre 1.0.0 indices if we hit parse exception, we try to reparse without a top-level query object to be BWC compatible for these indices. Closes #10262
s1monw
added a commit
that referenced
this issue
Jun 3, 2015
This is happening because of #4074 when we required that the top-level "query" is present to delete-by-query requests, but prior to that we required that it is not present. So the translog has a DBQ without "query" and when we try to parse it we hit this exception. This commit adds special handling for pre 1.0.0 indices if we hit parse exception, we try to reparse without a top-level query object to be BWC compatible for these indices. Closes #10262 Conflicts: src/test/java/org/elasticsearch/index/shard/IndexShardTests.java
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working on #10067, improving our back-compat test indices so that the translog has a delete-by-query on upgrade, I hit this pre-existing back-compat bug where on upgrade of an index <= 1.0.0 Beta2 that has a DBQ in its translog, this exception shows up:
This is happening because of #4074 when we required that the top-level "query" is present to delete-by-query requests, but prior to that we required that it is not present. So the translog has a DBQ without "query" and when we try to parse it we hit this exception.
I have changes to create-bwc-index.py that shows the bug ... but I'm not sure how to cleanly fix it. Somehow on parsing a translog entry from an old enough version of ES we need to insert "query" at the top...
The text was updated successfully, but these errors were encountered: