You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Denys Kuzmenko (Jira)" <ji...@apache.org> on 2022/10/19 08:49:00 UTC
[jira] [Updated] (HIVE-26121) Hive transaction rollback should be thread-safe
[ https://issues.apache.org/jira/browse/HIVE-26121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denys Kuzmenko updated HIVE-26121:
----------------------------------
Fix Version/s: 4.0.0-alpha-2
> Hive transaction rollback should be thread-safe
> -----------------------------------------------
>
> Key: HIVE-26121
> URL: https://issues.apache.org/jira/browse/HIVE-26121
> Project: Hive
> Issue Type: Task
> Reporter: Denys Kuzmenko
> Assignee: Denys Kuzmenko
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0-alpha-2
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> When Hive query is being interrupted via cancel request, both the background pool thread (HiveServer2-Background) executing the query and the HttpHandler thread (HiveServer2-Handler) running the HiveSession.cancelOperation logic will eventually trigger the below method:
> {code}
> DriverTxnHandler.endTransactionAndCleanup(boolean commit)
> {code}
> Since this method could be invoked concurrently we need to synchronize access to it, so that only 1 thread would attempt to abort the transaction and stop the heartbeat.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)