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
Recovery API reports wrong reused file bytes during snapshot restore #11876
Comments
This seems to be a simple typo in
The result of I guess I could fix this, and maybe add a test, if no one else is working on this. |
@szroland please do |
Well, as expected the code wasn't too hard to fix, but while creating the test, I actually ran into an issue with how the Snapshot Create API is described in the rest API json spec file (or rather how that spec is treated in rest tests) vs. how it is actually mapped in its rest controller, see #11897. Practically if you use snapshot create in a rest test, it sometimes works and sometimes fails, depending on which HTTP method / path combination is picked by the RestClient from the API spec. |
@clintongormley, for now I choose to remove the POST option from the snapshot create API json spec file, which makes it possible to create rest tests that include this API. I think how that spec file and API should look like can be discussed and implemented in the context of #11897. The test case created here should simply continue to work whatever the outcome of that will be. Let me know what you think. |
I created the new pull request, see #11965 above |
Simple snapshot.restore test case that also exposes the bug mentioned in elastic#11876 Fix elastic#11876 Closes elastic#11965
The snapshot restore procedure copies over all the bytes. The output however is: (note
reused_in_bytes
==total_in_bytes
):The text was updated successfully, but these errors were encountered: