You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Rakesh Radhakrishnan (Jira)" <ji...@apache.org> on 2020/10/20 16:13:00 UTC

[jira] [Created] (HDDS-4360) ListFileStatus : list all the descendants of a given dir recursively

Rakesh Radhakrishnan created HDDS-4360:
------------------------------------------

             Summary: ListFileStatus : list all the descendants of a given dir recursively
                 Key: HDDS-4360
                 URL: https://issues.apache.org/jira/browse/HDDS-4360
             Project: Hadoop Distributed Data Store
          Issue Type: Sub-task
            Reporter: Rakesh Radhakrishnan
            Assignee: Rakesh Radhakrishnan


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

{code}
OzoneManagerFS#listStatus(keyArgs, recursive, startKey, numEntries);
{code}

+Hint:+ 

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

For example: OM has a namespace like,
{code:java}
/dir1/1...1Million files and /dir1/dir2/1...1Million files.
/dir1/1...1Million directories and /dir1/dir2/1...1Million directories.
{code}
Listing "{{/dir1"}} will change its parentID when fetching the files under "{{/dir1/dir2"}}
 which will be taken from {{startKey="/dir1/dir2"}} value.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org