[ 
https://issues.apache.org/jira/browse/HIVE-23471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Riju Trivedi reassigned HIVE-23471:
-----------------------------------


> Statement.executeUpdate() does not return correct affected records causing 
> "No such lock"
> -----------------------------------------------------------------------------------------
>
>                 Key: HIVE-23471
>                 URL: https://issues.apache.org/jira/browse/HIVE-23471
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 3.1.0
>            Reporter: Riju Trivedi
>            Assignee: Denys Kuzmenko
>            Priority: Critical
>
> In TxnHandler.acquire() call , Statement.executeUpdate() does not return 
> correct  number of records updated in HIVE_LOCKS table as requested number of 
> locks.
> This results in error "*Couldn't find a lock we just created! No such 
> lock(s)*" as acquire is rolled back.
> {code:java}
> int rc = stmt.executeUpdate(s);
>   if (rc < locksBeingChecked.size()) {
>     LOG.debug("Going to rollback acquire(Connection dbConn, Statement stmt, 
> List<LockInfo> locksBeingChecked)");
>     dbConn.rollback();
>   /*select all locks for this ext ID and see which ones are missing*/
>   StringBuilder sb = new StringBuilder("No such lock(s): (" + 
> JavaUtils.lockIdToString(extLockId) + ":");
> {code}



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

Reply via email to