[
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: [email protected]
For additional commands, e-mail: [email protected]