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

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

Zuoyan Qin created HAWQ-1769:
--------------------------------

             Summary: fix DirectoryIterator of libhdfs
                 Key: HAWQ-1769
                 URL: https://issues.apache.org/jira/browse/HAWQ-1769
             Project: Apache HAWQ
          Issue Type: Bug
          Components: libhdfs
            Reporter: Zuoyan Qin
            Assignee: Ruilong Huo
             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)