From hdfs-issues-return-222614-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Jun 1 01:40:05 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 A0CB2180632 for ; Fri, 1 Jun 2018 01:40:04 +0200 (CEST) Received: (qmail 93119 invoked by uid 500); 31 May 2018 23:40:03 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 93108 invoked by uid 99); 31 May 2018 23:40:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2018 23:40:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1DFC9C01C2 for ; Thu, 31 May 2018 23:40:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rg0Rh2neJg7c for ; Thu, 31 May 2018 23:40:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7A4A35F2C4 for ; Thu, 31 May 2018 23:40:01 +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 E411AE015E for ; Thu, 31 May 2018 23:40: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 90C3C21094 for ; Thu, 31 May 2018 23:40:00 +0000 (UTC) Date: Thu, 31 May 2018 23:40:00 +0000 (UTC) From: "Arpit Agarwal (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDDS-138) createVolume bug with non-existent user MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Arpit Agarwal created HDDS-138: ---------------------------------- Summary: createVolume bug with non-existent user Key: HDDS-138 URL: https://issues.apache.org/jira/browse/HDDS-138 Project: Hadoop Distributed Data Store Issue Type: Bug Reporter: Arpit Agarwal When createVolume is invoked for a non-existent user, it fails with {{Parti= alGroupNameException}}. However the volume appears to be created and the vo= lume name cannot be reused: {code} hadoop@9a70d9aa6bf9:~$ ozone oz -createVolume /vol4 -user nosuchuser 2018-05-31 20:40:16 WARN NativeCodeLoader:60 - Unable to load native-h= adoop library for your platform... using builtin-java classes where applica= ble 2018-05-31 20:40:17 WARN ShellBasedUnixGroupsMapping:210 - unable to r= eturn groups for user nosuchuser PartialGroupNameException The user name 'nosuchuser' is not found. id: = =E2=80=98nosuchuser=E2=80=99: no such user id: =E2=80=98nosuchuser=E2=80=99: no such user at org.apache.hadoop.security.ShellBasedUnixGroupsMapping.resolvePart= ialGroupNames(ShellBasedUnixGroupsMapping.java:294) at org.apache.hadoop.security.ShellBasedUnixGroupsMapping.getUnixGrou= ps(ShellBasedUnixGroupsMapping.java:207) at org.apache.hadoop.security.ShellBasedUnixGroupsMapping.getGroups(S= hellBasedUnixGroupsMapping.java:97) at org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback.g= etGroups(JniBasedUnixGroupsMappingWithFallback.java:51) at org.apache.hadoop.security.Groups$GroupCacheLoader.fetchGroupList(= Groups.java:384) at org.apache.hadoop.security.Groups$GroupCacheLoader.load(Groups.jav= a:319) at org.apache.hadoop.security.Groups$GroupCacheLoader.load(Groups.jav= a:269) at com.google.common.cache.LocalCache$LoadingValueReference.loadFutur= e(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.jav= a:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCa= che.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:222= 8) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache= .java:4829) at org.apache.hadoop.security.Groups.getGroups(Groups.java:227) at org.apache.hadoop.security.UserGroupInformation.getGroups(UserGrou= pInformation.java:1545) at org.apache.hadoop.security.UserGroupInformation.getGroupNames(User= GroupInformation.java:1533) at org.apache.hadoop.ozone.client.rpc.RpcClient.createVolume(RpcClien= t.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm= pl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc= cessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.ozone.client.OzoneClientInvocationHandler.invoke= (OzoneClientInvocationHandler.java:54) at com.sun.proxy.$Proxy11.createVolume(Unknown Source) at org.apache.hadoop.ozone.client.ObjectStore.createVolume(ObjectStor= e.java:77) at org.apache.hadoop.ozone.web.ozShell.volume.CreateVolumeHandler.exe= cute(CreateVolumeHandler.java:98) at org.apache.hadoop.ozone.web.ozShell.Shell.dispatch(Shell.java:395) at org.apache.hadoop.ozone.web.ozShell.Shell.run(Shell.java:135) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90) at org.apache.hadoop.ozone.web.ozShell.Shell.main(Shell.java:114) 2018-05-31 20:40:17 INFO RpcClient:210 - Creating Volume: vol4, with n= osuchuser as owner and quota set to 1152921504606846976 bytes. hadoop@9a70d9aa6bf9:~$ ozone oz -createVolume /vol4 -user hadoop 2018-05-31 20:40:23 WARN NativeCodeLoader:60 - Unable to load native-h= adoop library for your platform... using builtin-java classes where applica= ble 2018-05-31 20:40:24 INFO RpcClient:210 - Creating Volume: vol4, with h= adoop as owner and quota set to 1152921504606846976 bytes. Command Failed : Volume creation failed, error:VOLUME_ALREADY_EXISTS {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org