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 2021/11/22 10:12:00 UTC

[jira] [Work logged] (HIVE-25352) Optimise DBTokenStore for RDBMS

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

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

                Author: ASF GitHub Bot
            Created on: 22/Nov/21 10:11
            Start Date: 22/Nov/21 10:11
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on pull request #2499:
URL: https://github.com/apache/hive/pull/2499#issuecomment-975360915


   @sahana-bhat is this change ready for review?
   it seems like quite a few days have passed since it was opened...


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

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

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


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

            Worklog Id:     (was: 684606)
    Remaining Estimate: 0h
            Time Spent: 10m

> Optimise DBTokenStore for RDBMS
> -------------------------------
>
>                 Key: HIVE-25352
>                 URL: https://issues.apache.org/jira/browse/HIVE-25352
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Sahana Bhat
>            Assignee: Sahana Bhat
>            Priority: Major
>              Labels: pull-request-available, pull_request_available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The existing DBTokenStore implementation is very under optimised when an RDBMS is used.
>  * All available tokens are fetched from the DB. The validity of each token is determined based on its max date and renew date and deleted if required. For a relational database like MySQL, a *query to fetch all rows with no filters or pagination* can be costly and impact the performance of the database and the server. 
>  * From the token identifiers fetched, if the token hasn’t breached its max date, the token information is again fetched from the database to validate its renew date.  
>  * The token expiration daemon is part of the Hive system. In a cluster of tens or hundreds of Hive servers, the daemon runs on each of the servers. This means that the flow of fetching of tokens, validation for expiration and deleting them is executed in duplication in each of the servers. The *duplication of the functionality in every server* along with the problems discussed in Point 1 & 2, can severely degrade the performance of the database.
> This issue will address the issues mentioned in 1 & 2.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)