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 "Tim Armstrong (Jira)" <ji...@apache.org> on 2020/12/21 19:46:00 UTC
[jira] [Updated] (IMPALA-9123) Detect DDL hangs in tests
[ https://issues.apache.org/jira/browse/IMPALA-9123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Armstrong updated IMPALA-9123:
----------------------------------
Component/s: Infrastructure
> Detect DDL hangs in tests
> -------------------------
>
> Key: IMPALA-9123
> URL: https://issues.apache.org/jira/browse/IMPALA-9123
> Project: IMPALA
> Issue Type: Test
> Components: Infrastructure
> Reporter: Quanlong Huang
> Priority: Major
>
> Currently, we detect query hangs in tests by using execute_async() and wait_for_finished_timeout() of BeeswaxConnection together.
> E.g. [https://github.com/apache/impala/blob/3.3.0/tests/authorization/test_grant_revoke.py#L334-L335]
> {code:python}
> handle = self.client.execute_async("invalidate metadata")
> assert self.client.wait_for_finished_timeout(handle, timeout=60)
> {code}
> However, execute_async() won't return if the DDL is in CREATED state which is usually when DDL hangs. See the implementation of query() interface for Beeswax protocol: https://github.com/apache/impala/blob/3.3.0/be/src/service/impala-beeswax-server.cc#L52
> So wait_for_finished_timeout() don't run and the test is stuck in execute_async().
> We need to find a elegant way to detect DDL hangs and cancel the DDLs in CREATED state.
--
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