[
https://issues.apache.org/jira/browse/LUCENE-6932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15109266#comment-15109266
]
Adrien Grand commented on LUCENE-6932:
--------------------------------------
Apparently these changes caused this test failure:
http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/15594/. Here is a test
case that demonstrates the issue:
{code}
public void testSeek() throws IOException {
try (Directory dir = newDirectory()) {
try (IndexOutput out = dir.createOutput("a", IOContext.DEFAULT)) {
for (int i = 0; i < 1024; ++i) {
out.writeByte((byte) 0);
}
}
try (IndexInput in = dir.openInput("a", IOContext.DEFAULT)) {
in.seek(100);
assertEquals(100, in.getFilePointer());
in.seek(1024);
assertEquals(1024, in.getFilePointer());
}
}
}
{code}
The second assert fails with: expected <1024> but got <2048>.
> Seek past EOF with RAMDirectory should throw EOFException
> ---------------------------------------------------------
>
> Key: LUCENE-6932
> URL: https://issues.apache.org/jira/browse/LUCENE-6932
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/index
> Affects Versions: Trunk
> Reporter: Stéphane Campinas
> Fix For: Trunk, 5.x
>
> Attachments: LUCENE-6932.patch, issue6932.patch, testcase.txt
>
>
> In the JUnit test case from the attached file, I call "IndexInput.seek()" on
> a position past
> EOF. However, there is no EOFException that is thrown.
> To reproduce the error, please use the seed test:
> -Dtests.seed=8273A81C129D35E2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]