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/06/01 07:48:00 UTC

[jira] [Work logged] (HIVE-24663) Reduce overhead of partition column stats updation.

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

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

                Author: ASF GitHub Bot
            Created on: 01/Jun/21 07:47
            Start Date: 01/Jun/21 07:47
    Worklog Time Spent: 10m 
      Work Description: deniskuzZ commented on pull request #2266:
URL: https://github.com/apache/hive/pull/2266#issuecomment-851905628


   > > NOTE: I don't think TxnHandler is a good place for this kind of functionality. TxnHandler is responsible for managing txn metadata ONLY!! Wouldn't MetaStoreDirectSql be more appropriate here? @pvary what do you think?
   > 
   > The MetaStoreDirectSql does not have framework to handle adding notification logs within same transaction. That can cause issues in replication if the notification logs addition fails because of some reason. The MetaStoreDirectSql batch insert/update also not very performant.
   
   What I meant here is that TxnHandler shouldn't have colStats update logic, it's responsible for other functionality like Hive TXN management. HiveMetaStore can handle notification logs, what about it? Or if we can't find close by functionality service - we should create a new one.


-- 
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: 604354)
    Time Spent: 8h  (was: 7h 50m)

> Reduce overhead of partition column stats updation.
> ---------------------------------------------------
>
>                 Key: HIVE-24663
>                 URL: https://issues.apache.org/jira/browse/HIVE-24663
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Rajesh Balamohan
>            Assignee: mahesh kumar behera
>            Priority: Major
>              Labels: performance, pull-request-available
>          Time Spent: 8h
>  Remaining Estimate: 0h
>
> When large number of partitions (>20K) are processed, ColStatsProcessor runs into DB issues. 
> {{ db.setPartitionColumnStatistics(request);}} gets stuck for hours together and in some cases postgres stops processing. 
> It would be good to introduce small batches for stats gathering in ColStatsProcessor instead of bulk update.
> Ref: 
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/stats/ColStatsProcessor.java#L181
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/stats/ColStatsProcessor.java#L199



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