[ 
https://issues.apache.org/jira/browse/HDDS-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16612885#comment-16612885
 ] 

Arpit Agarwal commented on HDDS-138:
------------------------------------

Looks like this bug still exists. I am tentatively making it an Acadia blocker 
since users are sure to hit it if they specify the user name incorrectly. cc 
[~anu].

> 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
>            Assignee: Shashikant Banerjee
>            Priority: Blocker
>              Labels: newbie, usability
>             Fix For: 0.2.1
>
>
> When createVolume is invoked for a non-existent user, it fails with 
> {{PartialGroupNameException}}.
> {code:java}
>     hadoop@9a70d9aa6bf9:~$ ozone oz -createVolume /vol4 -user nosuchuser
>     2018-05-31 20:40:17 WARN  ShellBasedUnixGroupsMapping:210 - unable to 
> return groups for user nosuchuser
>     PartialGroupNameException The user name 'nosuchuser' is not found. id: 
> ‘nosuchuser’: no such user
>     id: ‘nosuchuser’: no such user
>       at 
> org.apache.hadoop.security.ShellBasedUnixGroupsMapping.resolvePartialGroupNames(ShellBasedUnixGroupsMapping.java:294)
>       at 
> org.apache.hadoop.security.ShellBasedUnixGroupsMapping.getUnixGroups(ShellBasedUnixGroupsMapping.java:207)
>       at 
> org.apache.hadoop.security.ShellBasedUnixGroupsMapping.getGroups(ShellBasedUnixGroupsMapping.java:97)
>       at 
> org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback.getGroups(JniBasedUnixGroupsMappingWithFallback.java:51)
>       at 
> org.apache.hadoop.security.Groups$GroupCacheLoader.fetchGroupList(Groups.java:384)
>       at 
> org.apache.hadoop.security.Groups$GroupCacheLoader.load(Groups.java:319)
>       at 
> org.apache.hadoop.security.Groups$GroupCacheLoader.load(Groups.java:269)
>       at 
> com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
>       at 
> com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
>       at 
> com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
>       at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
>       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(UserGroupInformation.java:1545)
>       at 
> org.apache.hadoop.security.UserGroupInformation.getGroupNames(UserGroupInformation.java:1533)
>       at 
> org.apache.hadoop.ozone.client.rpc.RpcClient.createVolume(RpcClient.java:190)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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(ObjectStore.java:77)
>       at 
> org.apache.hadoop.ozone.web.ozShell.volume.CreateVolumeHandler.execute(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 
> nosuchuser as owner and quota set to 1152921504606846976 bytes.
> {code}
> However the volume appears to be created:
> {code:json}
> ozone oz -listVolume o3:/// -user nosuchuser -root
> [ {
>   "owner" : {
>     "name" : "nosuchuser"
>   },
>   "quota" : {
>     "unit" : "TB",
>     "size" : 1048576
>   },
>   "volumeName" : "vol4",
>   "createdOn" : "Thu, 31 May 2018 20:40:17 GMT",
>   "createdBy" : "nosuchuser"
> } ]
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to