You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Lokesh Jain (Jira)" <ji...@apache.org> on 2023/09/26 14:33:00 UTC

[jira] [Assigned] (HUDI-6896) HoodieAvroHFileReader.RecordIterator iteration never terminates

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

Lokesh Jain reassigned HUDI-6896:
---------------------------------

    Assignee: Lokesh Jain

> HoodieAvroHFileReader.RecordIterator iteration never terminates
> ---------------------------------------------------------------
>
>                 Key: HUDI-6896
>                 URL: https://issues.apache.org/jira/browse/HUDI-6896
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: Lokesh Jain
>            Assignee: Lokesh Jain
>            Priority: Major
>
> org.apache.hudi.io.storage.HoodieAvroHFileReader.RecordIterator#hasNext uses org.apache.hadoop.hbase.io.hfile.HFileScanner#isSeeked to seek to the first line of the file.
> {code:java}
>         if (!scanner.isSeeked()) {
>           hasRecords = scanner.seekTo();
>         }
> {code}
> if isSeeked returns false, scanner seeks to start of file.
> After end of file is reached, isSeeked would still return false and the next time hasNext is called it seeks to start of file again leading to an infinite loop.
> Documentation for HFileScanner#isSeeked 
> True is scanner has had one of the seek calls invoked; i.e. seekBefore(Cell) or seekTo() or seekTo(Cell). Otherwise returns false.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)