You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/06/07 00:26:02 UTC

[jira] [Work logged] (HIVE-22512) Use direct SQL to fetch column privileges in refreshPrivileges

     [ https://issues.apache.org/jira/browse/HIVE-22512?focusedWorklogId=442352&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-442352 ]

ASF GitHub Bot logged work on HIVE-22512:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Jun/20 00:25
            Start Date: 07/Jun/20 00:25
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on pull request #847:
URL: https://github.com/apache/hive/pull/847#issuecomment-640136371


   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 442352)
    Time Spent: 1h 40m  (was: 1.5h)

> Use direct SQL to fetch column privileges in refreshPrivileges
> --------------------------------------------------------------
>
>                 Key: HIVE-22512
>                 URL: https://issues.apache.org/jira/browse/HIVE-22512
>             Project: Hive
>          Issue Type: Improvement
>          Components: Metastore
>    Affects Versions: 4.0.0
>            Reporter: Ashutosh Bapat
>            Assignee: Ashutosh Bapat
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-22512.01.patch, HIVE-22512.02.patch, HIVE-22512.03.patch
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> refreshPrivileges() callsĀ listTableAllColumnGrants() to fetch the column level privileges. The later function retrieves the individual column objects by firing one query per column privilege object, thus causing the backend db to be swamped by these queries when PrivilegeSynchronizer is run. PrivilegeSynchronizer synchronizes privileges of all the databases, tables and columns and thus the backend db can get swamped really bad when there are thousands of tables with hundreds of columns.
> The output of listTableAllColumnGrants() is not used completely so all the columns the PM has tried to retrieves anyway goes waste.
> Fix this by using direct SQL to fetch column privileges.



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