lucene-dev mailing list archives

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


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:
A possible solution

> Seek past EOF with RAMDirectory should throw EOFException
> ---------------------------------------------------------
>                 Key: LUCENE-6932
>                 URL:
>             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 "" on a position
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message