[ 
https://issues.apache.org/jira/browse/HIVE-23052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17063087#comment-17063087
 ] 

Hive QA commented on HIVE-23052:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12997132/HIVE-23052.1.patch

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:green}SUCCESS:{color} +1 due to 18123 tests passed

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/21187/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/21187/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-21187/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12997132 - PreCommit-HIVE-Build

> Optimize lock enqueueing in TxnHandler
> --------------------------------------
>
>                 Key: HIVE-23052
>                 URL: https://issues.apache.org/jira/browse/HIVE-23052
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Marton Bod
>            Assignee: Marton Bod
>            Priority: Major
>         Attachments: HIVE-23052.1.patch
>
>
> TxnHandler::enqueueLockWithRetry uses select for update (S4U) to retrieve the 
> next lock id from the metastore. This locks the NEXT_LOCK_ID table for 
> concurrent lock requests until the transaction has been committed.
> Since this creates contention, we should reduce the scope of this S4U, 
> thereby locking the table for only as long as necessary. Currently, within 
> the same txn, after the initial S4U, we also insert the transaction 
> components (TXN_COMPONENTS table) before committing, even though they are 
> independent and do not make use of the lock id. So moving these txn_component 
> inserts before the S4U would decrease the time the next_lock_id table is 
> locked and thus increase concurrency.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to