Skip to content

HIVE-29768: Fix ClassNotFoundException(SQLStdHiveAuthorizerFactoryForTest) in compactor tests - #6643

Open
maheshrajus wants to merge 1 commit into
apache:masterfrom
maheshrajus:HIVE-29768
Open

HIVE-29768: Fix ClassNotFoundException(SQLStdHiveAuthorizerFactoryForTest) in compactor tests#6643
maheshrajus wants to merge 1 commit into
apache:masterfrom
maheshrajus:HIVE-29768

Conversation

@maheshrajus

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Disables hive.compactor.gather.stats by default in the compactor test base class (CompactorTest)
so post-compaction stats gathering no longer runs during unit tests.
These tests do not assert on the stats that StatsUpdater.gatherStats produces.

Why are the changes needed?

Every TestWorker run (and every other test extending CompactorTest) emits a loud stack trace(CNFE) after each successful compaction.

  ERROR session.SessionState: Error setting up authorization:                                       
    java.lang.ClassNotFoundException:                                                                                                                                                 
  org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactoryForTest 

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existed UT

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants