hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanisha Koneru (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15128) TestViewFileSystem tests are broken in trunk
Date Tue, 19 Dec 2017 00:54:00 GMT

    [ 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

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

View raw message