[
https://issues.apache.org/jira/browse/SENTRY-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15172502#comment-15172502
]
Sravya Tirukkovalur commented on SENTRY-1105:
---------------------------------------------
The line in the test case is running the command as user1_1, but the failure is
due to user2_1 not having permission. I dig into this a little deeper and seems
like UserGroupInformation is getting the current user from current
context(AccessControlContext), which seems like still has the info for previous
user:
https://github.com/apache/hadoop/blob/6f03959e4dc0bc11030fd7e30a025447a4d6948a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java#L647
> Fix unittest TestMetastoreEndToEnd.testAddPartion
> -------------------------------------------------
>
> Key: SENTRY-1105
> URL: https://issues.apache.org/jira/browse/SENTRY-1105
> Project: Sentry
> Issue Type: Bug
> Reporter: Hao Hao
>
> TestMetastoreEndToEnd.testAddPartion is broken.
> https://builds.apache.org/job/PreCommit-SENTRY-Build/1252/testReport/junit/org.apache.sentry.tests.e2e.metastore/TestMetastoreEndToEnd/testAddPartion/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)