deniskuzZ commented on code in PR #4384:
URL: https://github.com/apache/hive/pull/4384#discussion_r1309116024
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java:
##########
@@ -3645,6 +3678,38 @@ long generateCompactionQueueId(Statement stmt) throws
SQLException, MetaExceptio
}
}
+ long generateCompactionQueueId() throws MetaException {
+ // Get the id for the next entry in the queue
+ String sql = sqlGenerator.addForUpdateClause("SELECT \"NCQ_NEXT\" FROM
\"NEXT_COMPACTION_QUEUE_ID\"");
Review Comment:
would that be executed in diff transaction context than the caller method?
--
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]