[jira] [Commented] (HIVE-25740) Handle race condition between compaction txn abort/commit and heartbeater
[ https://issues.apache.org/jira/browse/HIVE-25740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17452495#comment-17452495 ] Marton Bod commented on HIVE-25740: --- Pushed to master. Thanks for reviewing [~klcopp] , [~pvary] and [~szita] ! > 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 >Priority: Major > Labels: pull-request-available > Time Spent: 4h 10m > Remaining Estimate: 0h > > 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)
[jira] [Commented] (HIVE-25740) Handle race condition between compaction txn abort/commit and heartbeater
[ https://issues.apache.org/jira/browse/HIVE-25740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17449492#comment-17449492 ] Marton Bod commented on HIVE-25740: --- PR: [https://github.com/apache/hive/pull/2817] > 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 >Priority: Major > > 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)