@Override
  public void cleanupRecords(HiveObjectType type, Database db, Table table,
        Iterator<Partition> partitionIterator, boolean keepTxnToWriteIdMetaData) throws MetaException {
    new CleanupRecordsFunction(type, db, table, partitionIterator, getDefaultCatalog(conf), keepTxnToWriteIdMetaData, null)
        .execute(jdbcResource);
  }
Clean up corresponding records in metastore tables when corresponding object is dropped,
specifically: TXN_COMPONENTS, COMPLETED_TXN_COMPONENTS, COMPACTION_QUEUE, COMPLETED_COMPACTIONS
Retry-by-caller note: this is only idempotent assuming it's only called by dropTable/Db/etc
operations.
<p>
HIVE_LOCKS and WS_SET are cleaned up by {@link AcidHouseKeeperService}, if turned on
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java