Marton Bod created HIVE-25740:
---------------------------------

             Summary: Handle race condition between compaction txn abort/commit 
and heartbeater
                 Key: HIVE-25740
                 URL: https://issues.apache.org/jira/browse/HIVE-25740
             Project: Hive
          Issue Type: Bug
            Reporter: Marton Bod
            Assignee: Marton Bod


This issue is the following: once the compaction worker finishes, 
commitTxn/abortTxn is invoked first, and the heartbeater thread is only 
interrupted after that. This can lead to race conditions where the txn has 
already been deleted from the backend DB via commit/abort, but the concurrently 
running heartbeater thread still attempts to send a last heartbeat after that, 
but the txn id won't be found in the DB, leading to {{{}NoSuchTxnException{}}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to