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

Hanisha Koneru commented on HADOOP-15128:
-----------------------------------------

Thanks [~anu] and [~eyang].

The test failures in _TestViewFileSystemLocalFileSystem_ and 
_TestViewFileSystemWithAuthorityLocalFileSystem_ are because 
{{RawLocalFileSystem}} overrides the {{getOwner()}}, {{getGroup()}} and 
{{getPermission()}} functions from {{FileStatus}}. And in the overridden 
functions, there is a call to {{loadPermissionInfo()}} which can throw an 
Exception.

Possible fixes:
# Revert {{getOwner()}}, {{getGroup}} and {{getPermission()}} in 
_FileStatus#toString()_ to {{owner}}, {{group}} and {{permission}}.
# Catch the exception thrown by _RawLocalFileSystem#loadPermissionInfo()_ in 
_FileStatus#toString()_ and log a debug message.

I am inclined towards the second option. Thoughts?

> TestViewFileSystem tests are broken in trunk
> --------------------------------------------
>
>                 Key: HADOOP-15128
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15128
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 3.1.0
>            Reporter: Anu Engineer
>            Assignee: Hanisha Koneru
>
> The fix in Hadoop-10054 seems to have caused a test failure. Please take a 
> look. Thanks [~eyang] for reporting this.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to