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

Namit Jain commented on HIVE-1915:
----------------------------------

All tables/parititons are dropped in QTestUtil at the end of a unit test.

Similarly, you should drop all databases/roles also in QTestUtil - I was getting
some intermittent errors, and traced the root cause to that

> authorization on database level is broken.
> ------------------------------------------
>
>                 Key: HIVE-1915
>                 URL: https://issues.apache.org/jira/browse/HIVE-1915
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore, Security
>            Reporter: He Yongqiang
>            Assignee: He Yongqiang
>         Attachments: HIVE-1915.1.patch
>
>
> CREATE DATABASE IF NOT EXISTS test_db COMMENT 'Hive test database';
> SHOW DATABASES;
> grant `drop` on DATABASE test_db to user hive_test_user;
> grant `select` on DATABASE test_db to user hive_test_user;
> show grant user hive_test_user on DATABASE test_db;
> DROP DATABASE IF EXISTS test_db;
> will fail.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to