You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/01/04 11:21:58 UTC
[GitHub] [hive] pvary commented on a change in pull request #1795: HIVE-24550: Cleanup only transaction information for the current DriverContext
pvary commented on a change in pull request #1795:
URL: https://github.com/apache/hive/pull/1795#discussion_r551258899
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/DriverTxnHandler.java
##########
@@ -527,11 +527,15 @@ void release() {
release(!hiveLocks.isEmpty());
}
- void destroy() {
+ void destroy(String queryIdFromDriver) {
+ // We need cleanup transactions, even if we did not acquired locks yet
+ // However TxnManager is bound to session, so wee need to check if it is already handling a new query
Review comment:
If the TxnManager is handling a new query, would the old transaction be closed correctly?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org