-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Always fail engine if delete operation fails #40117
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
Conversation
Pinging @elastic/es-distributed |
test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left one comment
} else { | ||
throw ex; | ||
} | ||
assert indexWriter.getTragicException() != null : "delete operation should never fail at document level"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we do this like this:
if (indexWriter.getTragicException() == null) {
throw new AssertionError("delete operation should never fail at document level", ex);
}
we otherwise loose the original exception and then we are in trouble :)
Thanks @s1monw! |
Unlike index operations which can fail at the document level to analyzing errors, delete operations should never fail at the document level whether soft-deletes is enabled or not. With this change, we will always fail the engine if we fail to apply a delete operation to Lucene. Closes #33256
Backport of elastic/elasticsearch#40117 With this change, we will always fail the engine if we fail to apply a delete operation to Lucene.
Backport of elastic/elasticsearch#40117 With this change, we will always fail the engine if we fail to apply a delete operation to Lucene.
Backport of elastic/elasticsearch#40117 With this change, we will always fail the engine if we fail to apply a delete operation to Lucene.
Backport of elastic/elasticsearch#40117 With this change, we will always fail the engine if we fail to apply a delete operation to Lucene.
Backport of elastic/elasticsearch#40117 With this change, we will always fail the engine if we fail to apply a delete operation to Lucene.
Unlike index operations which can fail at the document level to analyzing errors, delete operations should never fail at the document level whether soft-deletes is enabled or not. With this change, we will always fail the engine if we fail to apply a delete operation to Lucene.
Closes #33256