lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stéphane Campinas (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (LUCENE-6932) Seek past EOF with RAMDirectory should throw EOFException
Date Tue, 15 Dec 2015 15:23:46 GMT

    [ 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


Mime
View raw message