You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Anu Engineer (Jira)" <ji...@apache.org> on 2019/12/03 16:52:00 UTC

[jira] [Assigned] (HDDS-2657) Key get command creates the output file even in case of KEY_NOT_FOUND

     [ https://issues.apache.org/jira/browse/HDDS-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anu Engineer reassigned HDDS-2657:
----------------------------------

    Assignee:     (was: Anu Engineer)

> Key get command creates the output file even in case of KEY_NOT_FOUND
> ---------------------------------------------------------------------
>
>                 Key: HDDS-2657
>                 URL: https://issues.apache.org/jira/browse/HDDS-2657
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HDDS-2657-01.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> If a key isn't found, the key get command still creates an output file of 0 size.
> {noformat}
> ayush@ayushpc:~/ozone/hadoop-ozone/hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/bin$ ll
> total 36
> drwxr-xr-x  3 ayush ayush  4096 Dec  2 22:41 ./
> drwxr-xr-x 13 ayush ayush  4096 Nov 30 19:39 ../
> -rwxr-xr-x  1 ayush ayush 12786 Nov 30 19:35 ozone*
> ayush@ayushpc:~/ozone/hadoop-ozone/hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/bin$ ./ozone sh key get "hive/bucket/key 21" "file 21"
> KEY_NOT_FOUND Key not found
> ayush@ayushpc:~/ozone/hadoop-ozone/hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/bin$ ll
> total 36
> drwxr-xr-x  3 ayush ayush  4096 Dec  2 22:42  ./
> drwxr-xr-x 13 ayush ayush  4096 Nov 30 19:39  ../
> -rw-r--r--  1 ayush ayush     0 Dec  2 22:42 'file 21'
> -rwxr-xr-x  1 ayush ayush 12786 Nov 30 19:35  ozone*
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org