[ https://issues.apache.org/jira/browse/SENTRY-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16998838#comment-16998838 ]
Hadoop QA commented on SENTRY-2539: ----------------------------------- Here are the results of testing the latest attachment https://issues.apache.org/jira/secure/attachment/12989068/SENTRY-2539.007.patch against master. {color:red}Overall:{color} -1 due to 41 errors {color:red}ERROR:{color} mvn test exited 1 {color:red}ERROR:{color} Failed: org.apache.sentry.policy.hive.TestDBModelAuthorizables {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestLinkEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestLinkEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestLinkEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestLinkEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestOwnerPrivilege {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestOwnerPrivilege {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestOwnerPrivilege {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestConnectorEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestConnectorEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestServerScopeEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestServerScopeEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestJobEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestJobEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestJobEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.sqoop.TestJobEndToEnd {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSubsetQueryOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSubsetQueryOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSubsetQueryOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSubsetQueryOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSubsetQueryOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrCollectionOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrCollectionOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrAdminOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrAdminOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrAdminOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrAdminOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrSchemaOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestAbacOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestAbacOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestAbacOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestAbacOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestAbacOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestAbacOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestDocLevelOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestDocLevelOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestDocLevelOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestDocLevelOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrConfigOperations {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.solr.TestSolrConfigOperations Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/4459/console This message is automatically generated. > PolicyEngine should be able to return privilege directly > --------------------------------------------------------- > > Key: SENTRY-2539 > URL: https://issues.apache.org/jira/browse/SENTRY-2539 > Project: Sentry > Issue Type: Improvement > Components: Sentry > Affects Versions: 2.1 > Reporter: Na Li > Assignee: Na Li > Priority: Major > Attachments: SENTRY-2539.002.patch, SENTRY-2539.003.patch, > SENTRY-2539.005.patch, SENTRY-2539.006.patch, SENTRY-2539.007.patch > > > Right now, the PolicyEngine Interface only returns the list of privileges in > the form of String. As a result, every authorization check has to convert the > privilege string to privilege object even though the cached privilege objects > are of the correct type already. > We should add a new function that returns privilege object directly to avoid > the overhead of conversion. -- This message was sent by Atlassian Jira (v8.3.4#803005)