Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8959

Provide an iterator-based API for listing all the snapshottable directories

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • hdfs-client
    • None

    Description

      Presently DistributedFileSystem#getSnapshottableDirListing() is sending all the SnapshottableDirectoryStatus[] array to the clients. Now the client should have enough space to hold it in memory. There could be chance that the client JVMs running out of memory because of this. Also, some time back there was a comment about RPC packet limitation and a large number of snapshot list can again cause issues.

      I believe iterator based DistributedFileSystem#listSnapshottableDirs() API would be a good addition!

      Attachments

        1. HDFS-8959-00.patch
          26 kB
          Rakesh Radhakrishnan
        2. HDFS-8959-01.patch
          30 kB
          Rakesh Radhakrishnan
        3. HDFS-8959-02.patch
          31 kB
          Rakesh Radhakrishnan

        Activity

          People

            rakeshr Rakesh Radhakrishnan
            rakeshr Rakesh Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: