Description
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.
Attachments
Issue Links
- links to