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 2021/04/08 16:59:00 UTC
[jira] [Commented] (HDDS-4360) ListFileStatus : list all the
descendants of a given dir recursively
[ https://issues.apache.org/jira/browse/HDDS-4360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17317346#comment-17317346 ]
Rakesh Radhakrishnan commented on HDDS-4360:
--------------------------------------------
{{recursive}} param is not set to {{true}} in any of the logic, will re-open if needed.
> ListFileStatus : list all the descendants of a given dir recursively
> --------------------------------------------------------------------
>
> Key: HDDS-4360
> URL: https://issues.apache.org/jira/browse/HDDS-4360
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Rakesh Radhakrishnan
> Assignee: Rakesh Radhakrishnan
> Priority: Major
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org