mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-14616: Skip checking batch event processing metrics in
test_event_processor_status When hierarchical event processing is enabled, there is no info about the current event batch shown in the /events page. Note that event batches are dispatched and processed later in parallel. The current event batch info is actually showing the current batch that is being dispatched which won't take long. This patch skips checking the current event batch info when hierarchical event processing is enabled. Tests - Verified that test runs fine locally. Change-Id: I2df24d2fd3b028a84d557e70141e68aa234908d4 Reviewed-on: http://gerrit.cloudera.org:8080/23790 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
d4992d532b
commit
7bf9ba38eb
@@ -455,11 +455,12 @@ class TestWebPage(CustomClusterTestSuite):
|
||||
self.run_stmt_in_hive("set hive.exec.dynamic.partition.mode=nonstrict;" + insert_stmt)
|
||||
page = requests.get("http://localhost:25020/events").text
|
||||
# Wait until the batched events are being processed
|
||||
if not IMPALA_TEST_CLUSTER_PROPERTIES.is_hierarchical_event_processing_enabled():
|
||||
while "a batch of" not in page:
|
||||
time.sleep(1)
|
||||
page = requests.get("http://localhost:25020/events").text
|
||||
expected_lines = [
|
||||
"Lag Info", "Lag time:", "Current Event Batch", "Metastore Event Batch:",
|
||||
"Current Event Batch", "Metastore Event Batch:",
|
||||
"Event ID starts from", "Event time starts from",
|
||||
"Started processing the current batch at",
|
||||
"Started processing the current event at",
|
||||
@@ -468,6 +469,11 @@ class TestWebPage(CustomClusterTestSuite):
|
||||
]
|
||||
for expected in expected_lines:
|
||||
assert expected in page, "Missing '%s' in events page:\n%s" % (expected, page)
|
||||
expected_lines = [
|
||||
"Lag Info", "Lag time:"]
|
||||
for expected in expected_lines:
|
||||
assert expected in page, "Missing '%s' in events page:\n%s" % (expected, page)
|
||||
|
||||
|
||||
@SkipIfFS.hive
|
||||
@CustomClusterTestSuite.with_args(
|
||||
|
||||
Reference in New Issue
Block a user