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

Zuoyan Qin closed HAWQ-1769.
----------------------------
    Resolution: Fixed

> 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: 2.5.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)

Reply via email to