[
https://issues.apache.org/jira/browse/SENTRY-958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15010804#comment-15010804
]
Colm O hEigeartaigh commented on SENTRY-958:
--------------------------------------------
Hi [~dapengsun], thanks for reviewing my patch.
Please see attached for a modified version of the patch.
For the record, the error may not appear on every JDK 8 instance, for me it's
with "1.8.0_66" and the error is:
testGrantALLPrivilegeWithOtherPrivilegesExist on
testGrantALLPrivilegeWithOtherPrivilegesExist(org.apache.sentry.tests.e2e.sqoop.TestGrantPrivilege)(org.apache.sentry.tests.e2e.sqoop.TestGrantPrivilege)
Time elapsed: 0.193 sec <<< FAILURE!
java.lang.AssertionError: expected:<[read, write]> but was:<[write, read]>
Colm.
> TestGrantPrivilege fails on JDK8
> --------------------------------
>
> Key: SENTRY-958
> URL: https://issues.apache.org/jira/browse/SENTRY-958
> Project: Sentry
> Issue Type: Test
> Components: Test
> Affects Versions: 1.7.0
> Reporter: Colm O hEigeartaigh
> Assignee: Colm O hEigeartaigh
> Priority: Trivial
> Fix For: 1.7.0
>
> Attachments: SENTRY-958.patch
>
>
> The Sqoop test TestGrantPrivilege fails when run on JDK8. This is because it
> assumes an order on the privileges returned by
> client.getPrivilegesByPrincipal that may not necessarily exist.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)