-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix Snapshot Status API Docs Test #59775
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
We can't just assume a fixed number for the overall file count. Depending on how the merging/flushing works out we won't always have 4 files for the index across all versions, systems etc. Also, we could have x-pack concurrently create some system indices which could mess up the total numbers here. Fixed by only snapshotting a single index+shard in the snapshot that we get the status for and verifying consistency instead of equality for total file counts. Closes elastic#59767
|
Pinging @elastic/es-docs (>docs) |
|
Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore) |
jrodewig
left a comment
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.
👍 LGTM.
Thanks for fixing. I hadn't considered that this stat may not be predictable.
lockewritesdocs
left a comment
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.
@original-brownbear, thank you for fixing this issue! It took some iterating with @jrodewig to fix the original test cases. The tests passed the CI checks, so I'm curious why it's now causing errors. I'll backport this change after it's merged.
|
Thanks @jrodewig @lockewritesdocs !
Thanks, then I won't backport here and leave it to you :) |
We can't just assume a fixed number for the overall file count. Depending on how the merging/flushing works out we won't always have 4 files for the index across all versions, systems etc. Also, we could have x-pack concurrently create some system indices which could mess up the total numbers here. Fixed by only snapshotting a single index+shard in the snapshot that we get the status for and verifying consistency instead of equality for total file counts. Closes elastic#59767
We can't just assume a fixed number for the overall file count. Depending on how the merging/flushing works out we won't always have 4 files for the index across all versions, systems etc. Also, we could have x-pack concurrently create some system indices which could mess up the total numbers here. Fixed by only snapshotting a single index+shard in the snapshot that we get the status for and verifying consistency instead of equality for total file counts. Closes elastic#59767
We can't just assume a fixed number for the overall file count. Depending on how the merging/flushing works out we won't always have 4 files for the index across all versions, systems etc. Also, we could have x-pack concurrently create some system indices which could mess up the total numbers here. Fixed by only snapshotting a single index+shard in the snapshot that we get the status for and verifying consistency instead of equality for total file counts. Closes elastic#59767
Introduce a fix to tests by snapshotting a single index+shard in the snapshot that we get the status for and verifying consistency instead of equality for total file counts. Co-authored-by: Armin Braun <[email protected]>
Introduce a fix to tests by snapshotting a single index+shard in the snapshot that we get the status for and verifying consistency instead of equality for total file counts. Co-authored-by: Armin Braun <[email protected]>
Introduce a fix to tests by snapshotting a single index+shard in the snapshot that we get the status for and verifying consistency instead of equality for total file counts. Co-authored-by: Armin Braun <[email protected]>
We can't just assume a fixed number for the overall file count.
Depending on how the merging/flushing works out we won't always have
4 files for the index across all versions, systems etc.
Also, we could have x-pack concurrently create some system indices
which could mess up the total numbers here.
Fixed by only snapshotting a single index+shard in the snapshot that
we get the status for and verifying consistency instead of equality
for total file counts.
Closes #59767
Backports: