[
https://issues.apache.org/jira/browse/HIVE-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903517#action_12903517
]
John Sichi commented on HIVE-1591:
----------------------------------
I applied this patch and tried the following scenario.
Client 1: insert overwrite table pokes2 select * from pokes;
Client 2: show locks;
Client 2 is getting an ArrayIndexOutOfBoundsException: 1.
Without the patch, show locks works fine.
Besides addressing this issue, two other items:
* the cause of the exception is getting swallowed, so it never makes it to
hive.log, due to the code below in DDLTask.showLocks. It should be passing e
along as the cause argument to the 2-arg HiveException constructor so that
there will be a "Caused By" in the stack dump.
} catch (Exception e) {
throw new HiveException(e.toString());
}
* we really need tests for actual concurrency
> Lock the database also as part of locking a table/partition
> -----------------------------------------------------------
>
> Key: HIVE-1591
> URL: https://issues.apache.org/jira/browse/HIVE-1591
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Namit Jain
> Assignee: Namit Jain
> Fix For: 0.7.0
>
> Attachments: hive.1591.1.patch
>
>
> Drop database should fail if a table in that database is being queried.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.