mirror of
https://github.com/apache/lucene.git
synced 2025-02-08 19:15:06 +00:00
LUCENE-6932: also fix RAFIndexInput to throw EOFE if you seek beyond end of file
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726289 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e19f4b5934
commit
f4cdb556e4
@ -165,7 +165,10 @@ public class RAFDirectory extends FSDirectory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void seekInternal(long position) {
|
protected void seekInternal(long pos) throws IOException {
|
||||||
|
if (pos > length()) {
|
||||||
|
throw new EOFException("read past EOF: pos=" + pos + " vs length=" + length() + ": " + this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isFDValid() throws IOException {
|
boolean isFDValid() throws IOException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user