Commit 26fa9d3
authored
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.
Closes #70000
1 parent e45db43 commit 26fa9d3
File tree
2 files changed
+12
-3
lines changed- test/framework/src/main/java/org/elasticsearch/common/lucene/store
- x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/index/store
2 files changed
+12
-3
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | | - | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
605 | 606 | | |
606 | 607 | | |
607 | 608 | | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
608 | 616 | | |
609 | | - | |
610 | 617 | | |
611 | 618 | | |
612 | 619 | | |
| |||
0 commit comments