You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Stéphane Campinas (JIRA)" <ji...@apache.org> on 2015/12/15 16:23:46 UTC

[jira] [Comment Edited] (LUCENE-6932) Seek past EOF with RAMDirectory should throw EOFException

    [ https://issues.apache.org/jira/browse/LUCENE-6932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15058198#comment-15058198 ] 

Stéphane Campinas edited comment on LUCENE-6932 at 12/15/15 3:23 PM:
---------------------------------------------------------------------

A possible solution for this bug is in the attached file issue6932.patch.
The problem is that the "bufferPosition" variable is overwritten in the "seek" method, although it was set to BUFFER_SIZE since EOF should be thrown.


was (Author: stephane.campinas@gmail.com):
A possible solution

> 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
>         Attachments: 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org