lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-7779) OfflineSorter should not call ByteSequencesReader.next again after it returns null
Date Wed, 12 Apr 2017 17:41:41 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-7779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael McCandless updated LUCENE-7779:
---------------------------------------
    Attachment: LUCENE-7779.patch

New patch, passing an {{boolean\[] isExhausted}} instead.

> OfflineSorter should not call ByteSequencesReader.next again after it returns null
> ----------------------------------------------------------------------------------
>
>                 Key: LUCENE-7779
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7779
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: master (7.0), 6.6
>
>         Attachments: LUCENE-7779.patch, LUCENE-7779.patch
>
>
> {{OfflineSorter}} uses a simple iterator class, {{ByteSequencesReader}}, to step through
all {{byte[]}} that need sorting.
> When its {{next}} method returns null the iteration is done.
> But {{OfflineSorter}} then calls next again after that null return ...



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message