From hdfs-dev-return-33399-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Thu Aug 2 11:33:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A7F1A180629 for ; Thu, 2 Aug 2018 11:33:05 +0200 (CEST) Received: (qmail 31958 invoked by uid 500); 2 Aug 2018 09:33:04 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 31908 invoked by uid 99); 2 Aug 2018 09:33:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2018 09:33:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 10B1B180453 for ; Thu, 2 Aug 2018 09:33:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kX4IpHOefFRC for ; Thu, 2 Aug 2018 09:33:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 24A995F622 for ; Thu, 2 Aug 2018 09:33:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DAB9EE2635 for ; Thu, 2 Aug 2018 09:33:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3DF4627762 for ; Thu, 2 Aug 2018 09:33:00 +0000 (UTC) Date: Thu, 2 Aug 2018 09:33:00 +0000 (UTC) From: "Nilotpal Nandi (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDDS-314) ozoneShell putKey command overwrites the existing key having same name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 :=C2=A0 1) created a volume root-volume and a bucket root-bucket. 2)=C2=A0 Ran following command to put a key with name 'passwd' =C2=A0 {noformat} hadoop@08315aa4b367:~/bin$ ./ozone oz -putKey /root-volume/root-bucket/pass= wd -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 =3D GRPC (default) 2018-08-02 09:20:18 INFO ConfUtils:41 - raft.grpc.message.size.max =3D 3355= 4432 (custom) 2018-08-02 09:20:18 INFO ConfUtils:41 - raft.client.rpc.retryInterval =3D 3= 00 ms (default) 2018-08-02 09:20:18 INFO ConfUtils:41 - raft.client.async.outstanding-reque= sts.max =3D 100 (default) 2018-08-02 09:20:18 INFO ConfUtils:41 - raft.client.async.scheduler-threads= =3D 3 (default) 2018-08-02 09:20:18 INFO ConfUtils:41 - raft.grpc.flow.control.window =3D 1= MB (=3D1048576) (default) 2018-08-02 09:20:18 INFO ConfUtils:41 - raft.grpc.message.size.max =3D 3355= 4432 (custom) 2018-08-02 09:20:18 INFO ConfUtils:41 - raft.client.rpc.request.timeout =3D= 3000 ms (default) Aug 02, 2018 9:20:18 AM org.apache.ratis.shaded.io.grpc.internal.ProxyDetec= torImpl detectProxy =C2=A0 {noformat} 3)=C2=A0Ran following command to put a key with name 'passwd' again. {noformat} hadoop@08315aa4b367:~/bin$ ./ozone oz -putKey /root-volume/root-bucket/pass= wd -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 =3D GRPC (default) 2018-08-02 09:20:42 INFO ConfUtils:41 - raft.grpc.message.size.max =3D 3355= 4432 (custom) 2018-08-02 09:20:42 INFO ConfUtils:41 - raft.client.rpc.retryInterval =3D 3= 00 ms (default) 2018-08-02 09:20:42 INFO ConfUtils:41 - raft.client.async.outstanding-reque= sts.max =3D 100 (default) 2018-08-02 09:20:42 INFO ConfUtils:41 - raft.client.async.scheduler-threads= =3D 3 (default) 2018-08-02 09:20:42 INFO ConfUtils:41 - raft.grpc.flow.control.window =3D 1= MB (=3D1048576) (default) 2018-08-02 09:20:42 INFO ConfUtils:41 - raft.grpc.message.size.max =3D 3355= 4432 (custom) 2018-08-02 09:20:42 INFO ConfUtils:41 - raft.client.rpc.request.timeout =3D= 3000 ms (default) Aug 02, 2018 9:20:42 AM org.apache.ratis.shaded.io.grpc.internal.ProxyDetec= torImpl detectProxy{noformat} =C2=A0 key 'passwd' was overwritten with new content and it did not throw any sayi= ng 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