You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Ruilong Huo (Jira)" <ji...@apache.org> on 2020/10/21 06:38:00 UTC

[jira] [Updated] (HAWQ-1769) fix DirectoryIterator of libhdfs

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

Ruilong Huo updated HAWQ-1769:
------------------------------
    Affects Version/s: 2.4.0.0

> fix DirectoryIterator of libhdfs
> --------------------------------
>
>                 Key: HAWQ-1769
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1769
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: libhdfs
>    Affects Versions: 2.4.0.0
>            Reporter: Zuoyan Qin
>            Assignee: Ruilong Huo
>            Priority: Major
>             Fix For: 3.0.0.0
>
>
> The DirectoryIterator of libhdfs has some problems now:
>  * even if the `getListing` RPC returns "remainingentries = 0", the following invoking of DirectoryIterator::hasNext() may still trigger an *unnecessary* `getListing` RPC to the server.
>  * moreover, in the above case, if the server returns a non-empty list (so it is a server bug because the server should return an empty list) when the client send an unnecessary `getListing` RPC, then DirectoryIterator::hasNext() will return true, and we will enter endless loop.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)