@Test public void testNotEnoughToCompactNeedsCleaning() throws Exception {
    int[][] tableData = {{1, 2}, {3, 4}};
    runStatementOnDriver("insert into " + Table.ACIDTBL + "(a,b) " + makeValuesClause(tableData));
    runStatementOnDriver(
        "insert overwrite table " + Table.ACIDTBL + " " + makeValuesClause(tableData));

    runStatementOnDriver("alter table " + Table.ACIDTBL + " compact 'MAJOR'");

    runWorker(hiveConf);
    assertTableIsEmpty("TXN_COMPONENTS");

    runCleaner(hiveConf);
    assertTableIsEmpty("TXN_COMPONENTS");
  }
There aren't enough deltas to compact, but cleaning is needed because an insert overwrite
was executed.
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands3.java