You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Namit Jain (JIRA)" <ji...@apache.org> on 2010/08/25 00:09:24 UTC

[jira] Created: (HIVE-1591) ability to lock the database

ability to lock the database
----------------------------

                 Key: HIVE-1591
                 URL: https://issues.apache.org/jira/browse/HIVE-1591
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Query Processor
            Reporter: Namit Jain
             Fix For: 0.7.0


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.


[jira] Assigned: (HIVE-1591) Lock the database also as part of locking a table/partition

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain reassigned HIVE-1591:
--------------------------------

    Assignee: Namit Jain

> 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.


[jira] Updated: (HIVE-1591) Lock the database also as part of locking a table/partition

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-1591:
-----------------------------

    Summary: Lock the database also as part of locking a table/partition  (was: ability to lock the database)

> 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
>             Fix For: 0.7.0
>
>
> 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.


[jira] Commented: (HIVE-1591) Lock the database also as part of locking a table/partition

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (HIVE-1591) Lock the database also as part of locking a table/partition

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi updated HIVE-1591:
-----------------------------

    Status: Open  (was: Patch Available)

> 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.


[jira] Updated: (HIVE-1591) Lock the database also as part of locking a table/partition

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-1591:
-----------------------------

    Attachment: hive.1591.1.patch

> 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
>             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.


[jira] Updated: (HIVE-1591) Lock the database also as part of locking a table/partition

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi updated HIVE-1591:
-----------------------------

    Affects Version/s: 0.7.0

> 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
>    Affects Versions: 0.7.0
>            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.


[jira] Updated: (HIVE-1591) Lock the database also as part of locking a table/partition

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-1591:
-----------------------------

    Status: Patch Available  (was: Open)

> 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
>             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.


[jira] Commented: (HIVE-1591) Lock the database also as part of locking a table/partition

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902153#action_12902153 ] 

Namit Jain commented on HIVE-1591:
----------------------------------

Once https://issues.apache.org/jira/browse/HIVE-1590 is fixed, this will automatically enable locking.

> 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
>             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.