[
https://issues.apache.org/jira/browse/HDFS-11569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15947242#comment-15947242
]
Weiwei Yang commented on HDFS-11569:
------------------------------------
Some notes to help review:
# The behavior of listKey is quite explanatory by
{{TestContainerPersistence#testListKey}}, the result is paginated. Each page
contains a fixed number of keys, that number is defined by
{{OzoneConfigKeys.OZONE_LISTKEY_PAGESIZE}}, default value is 1000 (similar to
s3 list object pagination). Use cases for the argument (key name prefix,
prevKey and count) are also included in this test class.
# I have revised the API to return {{ListKeyResult}} instead of
{{List<KeyData>}}, {{ListKeyResult}} implements enumerate interface
{{PagedResults}}.
# Major code logic to retrieve list of keys is in {{ListKeyResults#getMore}}.
Hope this is helpful. Thanks
> Ozone: Implement listKey function for KeyManager
> ------------------------------------------------
>
> Key: HDFS-11569
> URL: https://issues.apache.org/jira/browse/HDFS-11569
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Reporter: Weiwei Yang
> Assignee: Weiwei Yang
> Attachments: HDFS-11569-HDFS-7240.001.patch,
> HDFS-11569-HDFS-7240.002.patch
>
>
> List keys by prefix from a container. This will need to support pagination
> for the purpose of small object support. So the listKey function returns
> something like ListKeyResult, client can iterate the object to get pagination
> results.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]