Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Mar 5, 2021

Since #69861 CFS files read from FrozenIndexInput create
dedicated frozen shared cache files when they are sliced.
This does not play well with some tests that use the
randomReadAndSlice to read files: this method can create
overlapping slice/clone reads operations which makes it
difficult to assert anything about CFS files with partial cache.

This commit prevent the tests to generate a .cfs file name
when the partial cache is randomly picked up. As a follow
up we should rework those test to make them more realistic
with the new behavior.

Backport of #70006
Closes #70000

…atsTests (elastic#70006)

Since elastic#69861 CFS files read from FrozenIndexInput create 
dedicated frozen shared cache files when they are sliced. 
This does not play well with some tests that use the 
randomReadAndSlice to read files: this method can create 
overlapping slice/clone reads operations which makes it 
difficult to assert anything about CFS files with partial cache.

This commit prevent the tests to generate a .cfs file name 
when the partial cache is randomly picked up. As a follow 
up we should rework those test to make them more realistic 
with the new behavior.

Closes elastic#70000
@tlrx tlrx added >test Issues or PRs that are addressing/adding tests backport v7.13.0 labels Mar 5, 2021
@tlrx tlrx merged commit 26fa9d3 into elastic:7.x Mar 5, 2021
@tlrx tlrx deleted the fix-70000-7.x branch March 5, 2021 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >test Issues or PRs that are addressing/adding tests v7.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant