hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-19831) Hiveserver2 should skip doAuth checks for CREATE DATABASE/TABLE if database/table already exists
Date Mon, 01 Jul 2019 08:21:00 GMT

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

Daniel Dai commented on HIVE-19831:
-----------------------------------

Can you add a comment saying when db exists, we would expect Hive throw an exception so there's
no need to do the auth? Otherwise from the code, it seems we would skip the auth check when
db exists.

> Hiveserver2 should skip doAuth checks for CREATE DATABASE/TABLE if database/table already
exists
> ------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-19831
>                 URL: https://issues.apache.org/jira/browse/HIVE-19831
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2
>    Affects Versions: 1.2.1, 2.1.0
>            Reporter: Rajkumar Singh
>            Assignee: Rajkumar Singh
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: HIVE-19831.patch
>
>
> with sqlstdauth on, Create database if exists take TOO LONG if there are too many
objects inside the database directory. Hive should not run the doAuth checks for all the objects
within database if the database already exists.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message