You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Denys Kuzmenko (Jira)" <ji...@apache.org> on 2019/09/10 09:23:00 UTC

[jira] [Comment Edited] (HIVE-15956) StackOverflowError when drop lots of partitions

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

Denys Kuzmenko edited comment on HIVE-15956 at 9/10/19 9:22 AM:
----------------------------------------------------------------

[~kgyrtkirk] could you please review. I have used provided above qtest file for verification. 
test case: 10k partitions, batch size 200

Submitted path #3 with checkstyle fix. Reported findbugs violation was already there in not related to the JIRA part of the code, so I did not want to bring confusion by addressing it here.


was (Author: dkuzmenko):
[~kgyrtkirk] could you please review. I have used provided above qtest file for verification. 10k partitions, batch size 200

> StackOverflowError when drop lots of partitions
> -----------------------------------------------
>
>                 Key: HIVE-15956
>                 URL: https://issues.apache.org/jira/browse/HIVE-15956
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 1.3.0, 2.2.0
>            Reporter: Niklaus Xiao
>            Assignee: Denys Kuzmenko
>            Priority: Major
>         Attachments: HIVE-15956.2.patch, HIVE-15956.3.patch, HIVE-15956.patch
>
>
> Repro steps:
> 1. Create partitioned table and add 10000 partitions
> {code}
> create table test_partition(id int) partitioned by (dt int);
> alter table test_partition add partition(dt=1);
> alter table test_partition add partition(dt=3);
> alter table test_partition add partition(dt=4);
> ...
> alter table test_partition add partition(dt=10000);
> {code}
> 2. Drop 9000 partitions:
> {code}
> alter table test_partition drop partition(dt<9000);
> {code}
> Step 2 will fail with StackOverflowError:
> {code}
> Exception in thread "pool-7-thread-161" java.lang.StackOverflowError
>     at org.datanucleus.query.expression.ExpressionCompiler.isOperator(ExpressionCompiler.java:819)
>     at org.datanucleus.query.expression.ExpressionCompiler.compileOrAndExpression(ExpressionCompiler.java:190)
>     at org.datanucleus.query.expression.ExpressionCompiler.compileExpression(ExpressionCompiler.java:179)
>     at org.datanucleus.query.expression.ExpressionCompiler.compileOrAndExpression(ExpressionCompiler.java:192)
>     at org.datanucleus.query.expression.ExpressionCompiler.compileExpression(ExpressionCompiler.java:179)
>     at org.datanucleus.query.expression.ExpressionCompiler.compileOrAndExpression(ExpressionCompiler.java:192)
>     at org.datanucleus.query.expression.ExpressionCompiler.compileExpression(ExpressionCompiler.java:179)
> {code}
> {code}
> Exception in thread "pool-7-thread-198" java.lang.StackOverflowError
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:83)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
>     at org.datanucleus.query.expression.DyadicExpression.bind(DyadicExpression.java:87)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)