hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaobing Zhou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10430) Refactor FileSystem#checkAccessPermissions for better reuse from tests
Date Sat, 21 May 2016 04:59:12 GMT

    [ https://issues.apache.org/jira/browse/HDFS-10430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294712#comment-15294712

Xiaobing Zhou commented on HDFS-10430:

[~boky01] thank you for the update.

We can add/refactor something like this. It should not have security concerns. I will post
a patch.
static void checkAccessPermissions(
  final FileStatus stat,
  final FsAction mode,
  final UserGroupInformation ugi) throws IOException {

> Refactor FileSystem#checkAccessPermissions for better reuse from tests
> ----------------------------------------------------------------------
>                 Key: HDFS-10430
>                 URL: https://issues.apache.org/jira/browse/HDFS-10430
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs
>            Reporter: Xiaobing Zhou
>            Assignee: Xiaobing Zhou
> FileSystem#checkAccessPermissions could be used in a bunch of tests from different projects,
but it's in hadoop-common, which is not visible in some cases.

This message was sent by Atlassian JIRA

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

View raw message