deniskuzZ commented on code in PR #6154:
URL: https://github.com/apache/hive/pull/6154#discussion_r2465955027
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/functions/CommitTxnFunction.java:
##########
@@ -159,7 +159,9 @@ public TxnType execute(MultiDataSourceJdbcResource
jdbcResource) throws MetaExce
long tempCommitId = TxnUtils.generateTemporaryId();
if (txnType == TxnType.SOFT_DELETE || txnType == TxnType.COMPACTION) {
- new AcquireTxnLockFunction(false).execute(jdbcResource);
+ if (!ConfVars.useMinHistoryWriteId()) {
+ new AcquireTxnLockFunction(false).execute(jdbcResource);
Review Comment:
nextTxnId hwm is not used with MinHistoryWriteId, so no need to lock in oder
to get accurate value
--
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]