-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More precise total data set size verification in FrozenSearchableSnap…
…shotsIntegTests (#73243) 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
- Loading branch information
Showing
1 changed file
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters