You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CacheBufferedIndexInput should throw EOFException (#53975)
InputStream#read may return -1 if it reaches EOF. This is unexpected in a
`CacheBufferedIndexInput` but may happen if, for instance, the underlying file
is truncated. Today we don't handle this specially and an EOF can cause strange
behaviour, often throwing an `ArrayIndexOutOfBoundsException`. This commit adds
better handling for EOF by throwing an `EOFException`.
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheBufferedIndexInput.java
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheBufferedIndexInputTests.java
0 commit comments