Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-1769

fix DirectoryIterator of libhdfs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0.0
    • backlog
    • libhdfs
    • None

    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

          Activity

            People

              huor Ruilong Huo
              qinzuoyan Zuoyan Qin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: