[ 
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.
{code}
static void checkAccessPermissions(
  final FileStatus stat,
  final FsAction mode,
  final UserGroupInformation ugi) throws IOException {
{code}

> 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
(v6.3.4#6332)

---------------------------------------------------------------------
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