@Test
  public void testCleanAbortCompactAfterAbort() throws Exception {
    String dbName = "default";
    String tblName = "cws";

    // Create three folders with two different transactions
    HiveStreamingConnection connection1 = prepareTableAndConnection(dbName, tblName, 1);
    HiveStreamingConnection connection2 = prepareTableAndConnection(dbName, tblName, 1);

    // to skip optimization introduced in HIVE-22122
    executeStatementOnDriver("truncate " + tblName, driver);

    connection1.beginTransaction();
    connection1.write("1,1".getBytes());
    connection1.write("2,2".getBytes());
    connection1.abortTransaction();

    connection2.beginTransaction();
    connection2.write("1,3".getBytes());
    connection2.write("2,3".getBytes());
    connection2.write("3,3".getBytes());
    connection2.abortTransaction();

    assertAndCompactCleanAbort(dbName, tblName, false, false);

    connection1.close();
    connection2.close();
  }
After each major compaction, stats need to be updated on the table
1. create an ORC backed table (Orc is currently required by ACID)
2. populate with data
3. compute stats
4. Trigger major compaction (which should update stats)
5. check that stats have been updated

@throws Exception todo:
                  4. add a test with sorted table?
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java