[ 
https://issues.apache.org/jira/browse/HDFS-11779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042324#comment-16042324
 ] 

Weiwei Yang edited comment on HDFS-11779 at 6/8/17 7:15 AM:
------------------------------------------------------------

Hi [~anu] thanks. Can you be more specific what case you want to track? The 
patch allows the case while startKey is missing,

{code}
@param startBucket
    Optional start bucket name parameter indicating where to start
    the bucket listing from.
{code}

please also see test case

{code}
// the 3rd argument is the startKey
listBucketArgs = new ListArgs(volArgs, null, 100, null); 
result = storageHandler.listBuckets(listBucketArgs);
Assert.assertEquals(20, result.getBuckets().size());
{code}


was (Author: cheersyang):
Hi [~anu] thanks. Can you be more specific what the case you want to track? The 
patch allows the case while startKey is missing,

{code}
@param startBucket
    Optional start bucket name parameter indicating where to start
    the bucket listing from.
{code}

please also see test case

{code}
// the 3rd argument is the startKey
listBucketArgs = new ListArgs(volArgs, null, 100, null); 
result = storageHandler.listBuckets(listBucketArgs);
Assert.assertEquals(20, result.getBuckets().size());
{code}

> Ozone: KSM: add listBuckets
> ---------------------------
>
>                 Key: HDFS-11779
>                 URL: https://issues.apache.org/jira/browse/HDFS-11779
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Anu Engineer
>            Assignee: Weiwei Yang
>         Attachments: HDFS-11779-HDFS-7240.001.patch, 
> HDFS-11779-HDFS-7240.002.patch, HDFS-11779-HDFS-7240.003.patch, 
> HDFS-11779-HDFS-7240.004.patch, HDFS-11779-HDFS-7240.005.patch, 
> HDFS-11779-HDFS-7240.006.patch, HDFS-11779-HDFS-7240.007.patch, 
> HDFS-11779-HDFS-7240.008.patch, HDFS-11779-HDFS-7240.009.patch, 
> HDFS-11779-HDFS-7240.010.patch, HDFS-11779-HDFS-7240.011.patch, 
> HDFS-11779-HDFS-7240.012.patch, HDFS-11779-HDFS-7240.013.patch, 
> HDFS-11779-HDFS-7240.014.patch
>
>
> Lists buckets of a given volume. Similar to listVolumes, paging supported via 
> prevKey, prefix and maxKeys.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to