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.