IMPALA-13350: Fix Workload Management flush_on_interval Test

The test 'flush_on_interval' in test_query_log.py is failing. The
cause is not allowing enough time for the workload management query
processing loop to execute before checking the number of queries
written to the query log table.

The fix is to allow more time for the processing loop to execute.

Change-Id: I2fb1034ca63e170d5e57a6ece9b47da5dafebff4
Reviewed-on: http://gerrit.cloudera.org:8080/21750
Reviewed-by: Riza Suminto <riza.suminto@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Jason Fehr
2024-09-04 08:36:02 -07:00
committed by Michael Smith
parent 7741edcf8b
commit dbe3002828

View File

@@ -682,10 +682,10 @@ class TestQueryLogTableHS2(TestQueryLogTableBase):
res = client.execute("select sleep(1000)")
assert res.success
# At least 10 seconds have already elapsed, wait up to 10 more seconds for the
# queries to be written to the completed queries table.
# Wait for at least one iteration of the workload management processing loop to write
# to the completed queries table.
self.cluster.get_first_impalad().service.wait_for_metric_value(
"impala-server.completed-queries.written", query_count, 10)
"impala-server.completed-queries.written", query_count, 20)
@CustomClusterTestSuite.with_args(impalad_args="--enable_workload_mgmt "
"--query_log_write_interval_s=9999 "