[
https://issues.apache.org/jira/browse/IMPALA-13139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe McDonnell updated IMPALA-13139:
-----------------------------------
Description:
When debugging TestRestart, I noticed that the debug_action set for one query
stayed in effect for subsequent queries that didn't specify query_options.
{noformat}
DEBUG_ACTION = ("WAIT_BEFORE_PROCESSING_CATALOG_UPDATE:SLEEP@{}"
.format(debug_action_sleep_time_sec * 1000))
query = "alter table {} add columns (age int)".format(tbl_name)
handle = self.execute_query_async(query, query_options={"debug_action":
DEBUG_ACTION})
...
# debug_action is still set for these queries:
self.execute_query_expect_success(self.client, "select age from
{}".format(tbl_name))
self.execute_query_expect_success(self.client,
"alter table {} add columns (name string)".format(tbl_name))
self.execute_query_expect_success(self.client, "select name from
{}".format(tbl_name)){noformat}
There is a way to clear the query options (self.client.clear_configuration()),
but this is an odd behavior. It's unclear if some tests rely on this behavior.
> Query options set via ImpalaTestSuite::execute_query_expect_success stay set
> for subsequent queries
> ---------------------------------------------------------------------------------------------------
>
> Key: IMPALA-13139
> URL: https://issues.apache.org/jira/browse/IMPALA-13139
> Project: IMPALA
> Issue Type: Task
> Components: Infrastructure
> Affects Versions: Impala 4.5.0
> Reporter: Joe McDonnell
> Priority: Major
>
> When debugging TestRestart, I noticed that the debug_action set for one query
> stayed in effect for subsequent queries that didn't specify query_options.
> {noformat}
> DEBUG_ACTION = ("WAIT_BEFORE_PROCESSING_CATALOG_UPDATE:SLEEP@{}"
> .format(debug_action_sleep_time_sec * 1000))
> query = "alter table {} add columns (age int)".format(tbl_name)
> handle = self.execute_query_async(query, query_options={"debug_action":
> DEBUG_ACTION})
> ...
> # debug_action is still set for these queries:
> self.execute_query_expect_success(self.client, "select age from
> {}".format(tbl_name))
> self.execute_query_expect_success(self.client,
> "alter table {} add columns (name string)".format(tbl_name))
> self.execute_query_expect_success(self.client, "select name from
> {}".format(tbl_name)){noformat}
> There is a way to clear the query options
> (self.client.clear_configuration()), but this is an odd behavior. It's
> unclear if some tests rely on this behavior.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]