Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Not A Problem
-
None
-
None
Description
steps taken :
1) created a volume root-volume and a bucket root-bucket.
2) Ran following command to put a key with name 'passwd'
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
3) Ran following command to put a key with name 'passwd' again.
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
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.