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:58:00 UTC
[jira] [Updated] (HIVE-22906) Redundant checkLock Mutex blocks concurrent Lock requests
[ https://issues.apache.org/jira/browse/HIVE-22906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denys Kuzmenko updated HIVE-22906:
----------------------------------
Fix Version/s: 4.0.0-alpha-1
> Redundant checkLock Mutex blocks concurrent Lock requests
> ---------------------------------------------------------
>
> Key: HIVE-22906
> URL: https://issues.apache.org/jira/browse/HIVE-22906
> Project: Hive
> Issue Type: Improvement
> Components: Locking
> Reporter: Denys Kuzmenko
> Assignee: Denys Kuzmenko
> Priority: Major
> Fix For: 4.0.0-alpha-1
>
> Attachments: HIVE-22906.1.patch
>
>
> enqueueLocks is already serialising locks creation via (SELECT NL_NEXT FROM NEXT_LOCK_ID FOR UPDATE). Requested locks would be assigned 'W' state.
> checkLock is iterating over the sorted set of conflicting locks below current EXT_LOCK_ID. It does handle the situation when there is conflicting lock with lower ID in 'W' state - lock request would be denied and retried later.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)