[
https://issues.apache.org/jira/browse/HADOOP-17059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127423#comment-17127423
]
Mingliang Liu commented on HADOOP-17059:
----------------------------------------
Thanks for reporting, [~hemanthboyina]. It should not throw
{{ArrayIndexOfboundsException}} here. So a fix is required.
The {{UGI::getPrimaryGroupName()}} method throws exception if primary group
name is not found. I'm not sure that if this IOE is too strict. In HADOOP-15167
the proposed change is to use the name of the user itself as group (in case of
no primary group). I think that patch should go in CC: [~brahmareddy]
Since HADOOP-15167 is still pending and it actually is targeting another aspect
of this problem, I think can commit this one first. [~ayushtkn] Thoughts?
> ArrayIndexOfboundsException in ViewFileSystem#listStatus
> --------------------------------------------------------
>
> Key: HADOOP-17059
> URL: https://issues.apache.org/jira/browse/HADOOP-17059
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: hemanthboyina
> Assignee: hemanthboyina
> Priority: Major
> Attachments: HADOOP-17059.001.patch
>
>
> In Viewfilesystem#listStatus , we get groupnames of ugi , If groupnames
> doesn't exists it will throw AIOBE
> {code:java}
> else {
> result[i++] = new FileStatus(0, true, 0, 0,
> creationTime, creationTime, PERMISSION_555,
> ugi.getShortUserName(), ugi.getGroupNames()[0],
> new Path(inode.fullPath).makeQualified(
> myUri, null));
> } {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]