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

[7.13] More precise total data set size verification in FrozenSearchableSnapshotsIntegTests #73455

Merged
merged 1 commit into from
May 27, 2021

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented May 27, 2021

In #70625 we added the total data set size of shards
to the Indices Stats API and we enhanced the test
testCreateAndRestorePartialSearchableSnapshot to
also verify the correctness of this data set size.

Because restoring a searchable snapshot shard
creates a new in-memory segment size, the
verification of the data set size was implemented
in an approximative fashion: between the
expected size and twice the expected size. This
approximation sometimes fails for shards that
have no documents indexed (see #73194).

This commit changes the test so that it now
verifies the exact data set size returned by the
Indices Stats API, which should be the sum of
the original expected size of the snapshotted
size + the length of the extra segment file in
memory.

Closes #73194
Backport of #73243

…shotsIntegTests (elastic#73243)

In elastic#70625 we added the total data set size of shards 
to the Indices Stats API and we enhanced the test 
testCreateAndRestorePartialSearchableSnapshot to 
also verify the correctness of this data set size.

Because restoring a searchable snapshot shard 
creates a new in-memory segment size, the 
verification of the data set size was implemented 
in an approximative fashion: between the 
expected size and twice the expected size. This 
approximation sometimes fails for shards that 
have no documents indexed (see elastic#73194).

This commit changes the test so that it now 
verifies the exact data set size returned by the 
Indices Stats API, which should be the sum of 
the original expected size of the snapshotted 
size + the length of the extra segment file in 
memory.

Closes elastic#73194
@tlrx tlrx added >test Issues or PRs that are addressing/adding tests :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport v7.13.1 labels May 27, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team label May 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@tlrx tlrx merged commit e8a7ad5 into elastic:7.13 May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Meta label for distributed team >test Issues or PRs that are addressing/adding tests v7.13.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants