HIVE-29735: TxnStoreMutex.releaseLocks does not release the connection on failure#6604
Conversation
|
@deniskuzZ , will it cause this stacktrace :-) |
|
@deniskuzZ , can you please share the repo case/stacktrace of error you faced? I faced the above stacktrace today in prod as per timestamp. HIVE-28669 is backported in 4.0.1 in my case. So I was thinking of this in |
|
@Aggarwal-Raghav As a result subsequent calls are failing with connections closed in Initiator. I think HIVE-28669: Deadlock found when TxnStoreMutex trying to acquireLock might be related to your case |
…n on failure Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
added test |
|
Thanks @deniskuzZ for adding test. I'll go through it later and it might be slightly different from my issue as i have HIVE-28669 merged in my custom branch. I think its a bug. I'll investigate it in upcoming days and will raise a seprate JIRA if i find its open on master branch. Your current PR LGTM |
|



What changes were proposed in this pull request?
Complete the transaction on all paths in releaseLocks by calling
TransactionContext.close()in a finally blockWhy are the changes needed?
BugFix
Does this PR introduce any user-facing change?
No
How was this patch tested?
Local repro