Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2939 Ozone FS namespace
  3. HDDS-4360

ListFileStatus : list all the descendants of a given dir recursively

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      This task is to handle listing files with recursive flag true. Here it has to list all the descendants of a given directory.

      OzoneManagerFS#listStatus(keyArgs, recursive, startKey, numEntries);
      

      Hint: 

      When recursive flag=true, parentID can change between two pages. Say, Constants.LISTING_PAGE_SIZE = 1024.

      For example: OM has a namespace like,

      /dir1/1...1Million files and /dir1/dir2/1...1Million files.
      /dir1/1...1Million directories and /dir1/dir2/1...1Million directories.
      

      Listing "/dir1" will change its parentID when fetching the files under "/dir1/dir2"
      which will be taken from startKey="/dir1/dir2" value.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: