Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ protected final void setup(HiveConf conf) throws Exception {
}
// Set this config to true in the base class, there are extended test classes which set this config to false.
MetastoreConf.setBoolVar(conf, ConfVars.COMPACTOR_CLEAN_ABORTS_USING_CLEANER, true);
// Post-compaction stats gathering runs an ANALYZE TABLE query through the Driver,
// which triggers SessionState.setupAuth() and fails here with a ClassNotFoundException:
// data/conf/hive-site.xml points hive.security.authorization.manager at
// SQLStdHiveAuthorizerFactoryForTest, but that class lives in itests/util which
// isn't on the ql test classpath. StatsUpdater swallows the failure so tests still pass.
// Disable stats by default as these tests do not assert on the stats that StatsUpdater.gatherStats produces.
HiveConf.setBoolVar(conf, HiveConf.ConfVars.HIVE_COMPACTOR_GATHER_STATS, false);
TestTxnDbUtil.setConfValues(conf);
TestTxnDbUtil.cleanDb(conf);
TestTxnDbUtil.prepDb(conf);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ private void setUpHiveConf() {
TimeUnit.SECONDS);
MetastoreConf.setDoubleVar(conf, MetastoreConf.ConfVars.METASTORE_DELTAMETRICS_DELTA_PCT_THRESHOLD, 0.15f);
MetastoreConf.setBoolVar(conf, MetastoreConf.ConfVars.METRICS_ENABLED, true);
HiveConf.setBoolVar(conf, HiveConf.ConfVars.HIVE_COMPACTOR_GATHER_STATS, false);
}

@Override
Expand Down
Loading