hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nilotpal Nandi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDDS-314) ozoneShell putKey command overwrites the existing key having same name
Date Thu, 02 Aug 2018 09:33:00 GMT
Nilotpal Nandi created HDDS-314:
-----------------------------------

             Summary: ozoneShell putKey command overwrites the existing key having same name
                 Key: HDDS-314
                 URL: https://issues.apache.org/jira/browse/HDDS-314
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
          Components: Ozone Client
            Reporter: Nilotpal Nandi
             Fix For: 0.2.1


steps taken : 

1) created a volume root-volume and a bucket root-bucket.

2)  Ran following command to put a key with name 'passwd'

 
{noformat}
hadoop@08315aa4b367:~/bin$ ./ozone oz -putKey /root-volume/root-bucket/passwd -file /etc/services
-v
2018-08-02 09:20:17 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
Volume Name : root-volume
Bucket Name : root-bucket
Key Name : passwd
File Hash : 567c100888518c1163b3462993de7d47
2018-08-02 09:20:18 INFO ConfUtils:41 - raft.rpc.type = GRPC (default)
2018-08-02 09:20:18 INFO ConfUtils:41 - raft.grpc.message.size.max = 33554432 (custom)
2018-08-02 09:20:18 INFO ConfUtils:41 - raft.client.rpc.retryInterval = 300 ms (default)
2018-08-02 09:20:18 INFO ConfUtils:41 - raft.client.async.outstanding-requests.max = 100 (default)
2018-08-02 09:20:18 INFO ConfUtils:41 - raft.client.async.scheduler-threads = 3 (default)
2018-08-02 09:20:18 INFO ConfUtils:41 - raft.grpc.flow.control.window = 1MB (=1048576) (default)
2018-08-02 09:20:18 INFO ConfUtils:41 - raft.grpc.message.size.max = 33554432 (custom)
2018-08-02 09:20:18 INFO ConfUtils:41 - raft.client.rpc.request.timeout = 3000 ms (default)
Aug 02, 2018 9:20:18 AM org.apache.ratis.shaded.io.grpc.internal.ProxyDetectorImpl detectProxy
 
{noformat}
3) Ran following command to put a key with name 'passwd' again.
{noformat}
hadoop@08315aa4b367:~/bin$ ./ozone oz -putKey /root-volume/root-bucket/passwd -file /etc/passwd
-v
2018-08-02 09:20:41 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
Volume Name : root-volume
Bucket Name : root-bucket
Key Name : passwd
File Hash : b056233571cc80d6879212911cb8e500
2018-08-02 09:20:41 INFO ConfUtils:41 - raft.rpc.type = GRPC (default)
2018-08-02 09:20:42 INFO ConfUtils:41 - raft.grpc.message.size.max = 33554432 (custom)
2018-08-02 09:20:42 INFO ConfUtils:41 - raft.client.rpc.retryInterval = 300 ms (default)
2018-08-02 09:20:42 INFO ConfUtils:41 - raft.client.async.outstanding-requests.max = 100 (default)
2018-08-02 09:20:42 INFO ConfUtils:41 - raft.client.async.scheduler-threads = 3 (default)
2018-08-02 09:20:42 INFO ConfUtils:41 - raft.grpc.flow.control.window = 1MB (=1048576) (default)
2018-08-02 09:20:42 INFO ConfUtils:41 - raft.grpc.message.size.max = 33554432 (custom)
2018-08-02 09:20:42 INFO ConfUtils:41 - raft.client.rpc.request.timeout = 3000 ms (default)
Aug 02, 2018 9:20:42 AM org.apache.ratis.shaded.io.grpc.internal.ProxyDetectorImpl detectProxy{noformat}
 

key 'passwd' was overwritten with new content and it did not throw any saying that the key
is already present.

Expectation :

-------------------

key overwrite with same name should not be allowed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message