You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Alexander Kolbasov (JIRA)" <ji...@apache.org> on 2018/09/11 22:03:00 UTC

[jira] [Commented] (HIVE-18247) Use DB auto-increment for indexes

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

Alexander Kolbasov commented on HIVE-18247:
-------------------------------------------

This change requires extra steps on upgrade since the fields need to be marked as auto-increment and current values should probably be reset.

> Use DB auto-increment for indexes
> ---------------------------------
>
>                 Key: HIVE-18247
>                 URL: https://issues.apache.org/jira/browse/HIVE-18247
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, Metastore
>    Affects Versions: 3.0.0
>            Reporter: Alexander Kolbasov
>            Assignee: Alexander Kolbasov
>            Priority: Major
>              Labels: datanucleus, perfomance
>         Attachments: HIVE-18247.02.patch
>
>
> I initially noticed this problem in Apache Sentry - see SENTRY-1960. Hive has the same issue. DataNucleus uses SEQUENCE table to allocate IDs which requires raw locks on multiple tables during transactions and this creates scalability problems. 
> Instead DN should rely on DB auto-increment mechanisms which are much more scalable.
> See SENTRY-1960 for extra details.



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