You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/04/24 20:56:10 UTC
[jira] [Commented] (HDFS-12205) Ozone: List Key on an empty ozone
bucket fails with command failed error
[ https://issues.apache.org/jira/browse/HDFS-12205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16451012#comment-16451012 ]
Hudson commented on HDFS-12205:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14057 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/14057/])
HDFS-12205. Ozone: List Key on an empty ozone bucket fails with command (yqlin: rev f6d656642c27494d556588ab46dba67884e2b1b9)
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/localstorage/OzoneMetadataManager.java
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/TestLocalOzoneVolumes.java
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/TestOzoneHelper.java
> Ozone: List Key on an empty ozone bucket fails with command failed error
> ------------------------------------------------------------------------
>
> Key: HDFS-12205
> URL: https://issues.apache.org/jira/browse/HDFS-12205
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Affects Versions: HDFS-7240
> Reporter: Mukul Kumar Singh
> Assignee: Lokesh Jain
> Priority: Major
> Labels: OzonePostMerge
> Fix For: HDFS-7240
>
> Attachments: HDFS-12205-HDFS-7240.001.patch, HDFS-12205-HDFS-7240.002.patch
>
>
> Tried listing an empty bucket and it fails with
> {code}
> [root@88970a014980 opt]# hadoop-3.0.0-alpha4-SNAPSHOT/bin/hdfs oz -listKey http://localhost:9864/vol1/bucket1
> Command Failed : {"httpCode":400,"shortMessage":"invalidResourceName","resource":"vol1/bucket1","message":"Invalid volume, bucket or key name.","requestID":"a38471bb-3fbf-416f-b89d-758506185244","hostName":"88970a014980"}
> {code}
> However after adding one key the same command works.
> {code}
> [root@88970a014980 opt]# hadoop-3.0.0-alpha4-SNAPSHOT/bin/hdfs oz -listKey http://localhost:9864/vol1/bucket1
> {
> "version" : 0,
> "md5hash" : "d41d8cd98f00b204e9800998ecf8427e",
> "createdOn" : "Thu, 27 Jul 2017 11:43:55 +0000",
> "size" : 0,
> "keyName" : "key1"
> }
> {code}
> I feel that for an empty bucket, an empty json should be returned.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org