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

    HiveStreamingConnection connection = prepareTableAndConnection(dbName, tblName, 2);

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

    connection.beginTransaction();
    connection.write("3,2".getBytes());
    connection.write("3,3".getBytes());
    connection.commitTransaction();

    assertAndCompactCleanAbort(dbName, tblName, true, true);
    connection.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