deniskuzZ commented on a change in pull request #2772:
URL: https://github.com/apache/hive/pull/2772#discussion_r773270399
##########
File path:
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java
##########
@@ -4238,22 +4307,23 @@ public void cleanupRecords(HiveObjectType type,
Database db, Table table,
buff.append("'");
queries.add(buff.toString());
- buff.setLength(0);
- buff.append("DELETE FROM \"TXN_TO_WRITE_ID\" WHERE
\"T2W_DATABASE\"='");
- buff.append(dbName.toLowerCase());
- buff.append("' AND \"T2W_TABLE\"='");
- buff.append(tblName.toLowerCase());
- buff.append("'");
- queries.add(buff.toString());
-
- buff.setLength(0);
- buff.append("DELETE FROM \"NEXT_WRITE_ID\" WHERE
\"NWI_DATABASE\"='");
- buff.append(dbName.toLowerCase());
- buff.append("' AND \"NWI_TABLE\"='");
- buff.append(tblName.toLowerCase());
- buff.append("'");
- queries.add(buff.toString());
+ if (!keepTxnToWriteIdMetaData) {
Review comment:
AcidHouseKeeperThread would do it in cleanTheHouse() once
min_uncommitted_txnid which is currently seen by any open transactions is
advanced.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]