You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/07/14 13:12:01 UTC

[jira] [Commented] (IMPALA-10490) truncate table fails with IllegalStateException

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

ASF subversion and git services commented on IMPALA-10490:
----------------------------------------------------------

Commit 85ebfe220aa6fe654b860d5f3fe1d8902940de0f in impala's branch refs/heads/master from Vihang Karajgaonkar
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=85ebfe2 ]

IMPALA-10490: Fix illegalStateException in drop stats

If a table was created and incremental stats were computed on the table
while events processing is turned off, then after the events processing
is turned on a drop stats or truncate table command on such a table
fails with IllegalStateException. This happens because the
catalog service identifiers are not found in the table properties
while partition for the table are being altered. This patch adds
the catalog service identifiers for drop stats, truncate and comment on
statement code paths to fix the error.

Testing:
1. Added more statements to the test_self_events test to cover the
newly added logic.
2. Manually tested the following scenario which was previously failing
  a. starting catalogd without events processing.
  b. create partitioned table and compute incremental stats on it.
  c. restart catalogd with events processing turned on.
  d. issue drop stats command.

Change-Id: Iaa0b4043879370c52049d22acb49c847b0be1c68
Reviewed-on: http://gerrit.cloudera.org:8080/17659
Reviewed-by: Vihang Karajgaonkar <vi...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> truncate table fails with IllegalStateException
> -----------------------------------------------
>
>                 Key: IMPALA-10490
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10490
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Vihang Karajgaonkar
>            Assignee: Vihang Karajgaonkar
>            Priority: Major
>
> This is a problem for when events processing is turned on. I can reproduce it by following steps.
> 1. start impala without events processing
> 2. create table, load data, compute stats on the table.
> 3. restart impala with events processing turned on
> 4. Run truncate table command.
> I can see the truncate table command fails with following error.
> [localhost:21050] default> truncate t5;
> Query: truncate t5
> ERROR: CatalogException: Failed to truncate table: default.t5.
> Table may be in a partially truncated state.
> CAUSED BY: IllegalStateException: Table parameters must have catalog service identifier before adding it to partition parameters



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org