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

Weiwei Yang commented on HDFS-11955:
------------------------------------

Tested on a cluster, when list buckets without any parameter, I get

{noformat}
17/06/09 09:59:39 INFO exceptions.OzoneExceptionMapper: 
Returning exception. ex:
{  
  "httpCode":400,
  "shortMessage":"invalidVolumeName",
  "resource":"root",
  "message":"Illegal max number of keys specified, the value must be in range 
(0, 1024], actual : 0.",
  "requestID":"157e681b-728c-497d-9635-d232b9ebe093",
  "hostName":"ozone1.fyre.ibm.com"
}
{noformat}

Will continue with more testing and upload a complete fix.

> Ozone: Set proper parameter default values for listBuckets http request
> -----------------------------------------------------------------------
>
>                 Key: HDFS-11955
>                 URL: https://issues.apache.org/jira/browse/HDFS-11955
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
>
> HDFS-11779 implements the listBuckets function in ozone server side, the API 
> supports several parameters, startKey, count and prefix. But both of them are 
> optional for the client side rest API. This jira is to make sure we set 
> proper default values in the http request if they are not explicitly set by 
> users.



--
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