private void compactPartition(String table, CompactionType type, String partition)
      throws Exception {
    CompactionRequest compactionRequest = new CompactionRequest("default", table, type);
    compactionRequest.setPartitionname(partition);
    txnHandler.compact(compactionRequest);
    runWorker(hiveConf);
    runCleaner(hiveConf);
  }
This tests that delete_delta_x_y dirs will be not produced during minor compaction if no input delete events.
See HIVE-20941.
@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands2.java