@SqlRetry
  @Transactional(POOL_TX)
  @RetrySemantics.Idempotent
  default void cleanupRecords(HiveObjectType type, Database db, Table table, 
      Iterator<Partition> partitionIterator) throws MetaException {
    cleanupRecords(type, db, table, partitionIterator, false);
  }
Clean up corresponding records in metastore tables.
@param type Hive object type
@param db database object
@param table table object
@param partitionIterator partition iterator
@throws MetaException
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java