You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2019/12/02 17:47:00 UTC
[jira] [Created] (HDDS-2657) Key get command creates the output
file even in case of KEY_NOT_FOUND
Ayush Saxena created HDDS-2657:
----------------------------------
Summary: 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
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