Commit 5ca112b
authored
Fix flaky testOverflowDisabledAsynchronous by throwing AlreadyClosedException (#20848)
When the file cache is full and a blob fetch races with cache eviction,
DelayedCreationCachedIndexInput.getIndexInput() throws an
IllegalStateException, so this surfaces as an IllegalStateException
instead of the IOException callers expect. Replace IllegalStateException
with Lucene's AlreadyClosedException (which extends IOException) in both
getIndexInput() and asyncLoadIndexInput().
Signed-off-by: Andrew Ross <andrross@amazon.com>1 parent 0e2783c commit 5ca112b
File tree
1 file changed
+3
-2
lines changed- server/src/main/java/org/opensearch/index/store/remote/utils
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | | - | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
236 | | - | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
0 commit comments