[
https://issues.apache.org/jira/browse/IMPALA-8150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16760891#comment-16760891
]
ASF subversion and git services commented on IMPALA-8150:
---------------------------------------------------------
Commit 3db3b3b0a74d003ef497cd76d3bd66480f7dc4d7 in impala's branch
refs/heads/master from Fredy Wijaya
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=3db3b3b ]
IMPALA-8150: Fix buggy AuditingTest::TestAccessEventsOnAuthFailure
I was able to reproduce this issue by running AuditingTest individually.
Running all tests did not seem to reproduce this issue, which may be due
to the test depends on the state from other tests. Looking at the code,
the test was poorly written mainly because of two reasons:
- The Sentry config was set to an empty string, which is not a valid
config file.
- Calling AuthorizationConfig.validateConfig() was missing.
This patch ensures validateConfig() is always called when
AuthorizationConfig instance is created.
Testing:
- Ran AuditingTest individually
- Ran all FE tests
- Ran all E2E authorization tests
Change-Id: I712697e6d5a3e171b259a781bd07de9871a29b95
Reviewed-on: http://gerrit.cloudera.org:8080/12334
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> AuditingTest.TestAccessEventsOnAuthFailure
> ------------------------------------------
>
> Key: IMPALA-8150
> URL: https://issues.apache.org/jira/browse/IMPALA-8150
> Project: IMPALA
> Issue Type: Bug
> Components: Catalog
> Affects Versions: Impala 3.2.0
> Reporter: Michael Ho
> Assignee: Fredy Wijaya
> Priority: Blocker
> Labels: broken-build
> Fix For: Impala 3.2.0
>
>
> {{org.apache.impala.analysis.AuditingTest.TestAccessEventsOnAuthFailure}}
> started to fail recently with the following backtrace.
> [~fredyw], would you mind taking a look as you seem to have touched this test
> recently.
> {noformat}
> java.lang.IllegalStateException: Error refreshing authorization policy: at
> org.apache.impala.analysis.AuditingTest.TestAccessEventsOnAuthFailure(AuditingTest.java:373)
> Caused by: org.apache.impala.catalog.CatalogException: Error refreshing
> authorization policy: at
> org.apache.impala.analysis.AuditingTest.TestAccessEventsOnAuthFailure(AuditingTest.java:373)
>
> Caused by: org.apache.impala.common.ImpalaRuntimeException: Error refreshing
> authorization policy, current policy state may be inconsistent. Running
> 'invalidate metadata' may resolve this problem: at
> org.apache.impala.analysis.AuditingTest.TestAccessEventsOnAuthFailure(AuditingTest.java:373)
> Caused by: java.util.concurrent.ExecutionException:
> org.apache.impala.common.SentryPolicyReaderException:
> org.apache.impala.common.InternalException: Error creating Sentry Service
> client: at
> org.apache.impala.analysis.AuditingTest.TestAccessEventsOnAuthFailure(AuditingTest.java:373)
> Caused by: org.apache.impala.common.SentryPolicyReaderException:
> org.apache.impala.common.InternalException: Error creating Sentry Service
> client:
> Caused by: org.apache.impala.common.InternalException: Error creating Sentry
> Service client:
> Caused by:
> org.apache.sentry.core.common.exception.MissingConfigurationException:
> Property 'sentry.service.server.principal' is missing in configuration
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]