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

Ferdinand Xu commented on HIVE-12077:
-------------------------------------

Hi [~thejas], the logic is not correct.
{noformat}
1863                  if (counter == batch_size) {
1864                    db.createPartitions(apd);
1865                    apd = new AddPartitionDesc(table.getDbName(), 
table.getTableName(), false);
1866                    counter = 0;
1867                  }
{noformat}
Will file a new ticket address it.

> MSCK Repair table should fix partitions in batches 
> ---------------------------------------------------
>
>                 Key: HIVE-12077
>                 URL: https://issues.apache.org/jira/browse/HIVE-12077
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>            Reporter: Ryan P
>            Assignee: Chinna Rao Lalam
>             Fix For: 2.2.0
>
>         Attachments: HIVE-12077.1.patch, HIVE-12077.2.patch, 
> HIVE-12077.3.patch, HIVE-12077.4.patch, HIVE-12077.5.patch
>
>
> If a user attempts to run MSCK REPAIR TABLE on a directory with a large 
> number of untracked partitions HMS will OOME. I suspect this is because it 
> attempts to do one large bulk load in an effort to save time. Ultimately this 
> can lead to a collection so large in size that HMS eventually hits an Out of 
> Memory Exception. 
> Instead I suggest that Hive include a configurable batch size that HMS can 
> use to break up the load. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to