[ https://issues.apache.org/jira/browse/IMPALA-12821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Quanlong Huang resolved IMPALA-12821. ------------------------------------- Fix Version/s: Impala 4.4.0 Resolution: Fixed > test_create_table_profile_events fails if event-processor is stopped > -------------------------------------------------------------------- > > Key: IMPALA-12821 > URL: https://issues.apache.org/jira/browse/IMPALA-12821 > Project: IMPALA > Issue Type: Bug > Reporter: Quanlong Huang > Assignee: Quanlong Huang > Priority: Major > Fix For: Impala 4.4.0 > > > test_create_table_profile_events could fail due to "Fetched event batch from > Metastore" not found in the query profile: > {noformat} > query_test/test_observability.py:487: in test_create_table_profile_events > "DDL finished" > query_test/test_observability.py:522: in __verify_event_labels_in_profile > assert label in profile > E assert 'Fetched event batch from Metastore' in 'Query > (id=5445c5c5b44dcc6b:beb0d40100000000):\n Summary:\n Session ID: > ea43c7f87eaf82d5:5464e9acfdaf11ad\n Ses...: 6.000us\n - RPCWriteTimer: > 55.000us\n - RowMaterializationRate: 0\n - RowMaterializationTimer: > 0.000ns\n'{noformat} > The cause is that event-processor was stopped due to an error. In such case, > this timeline label won't be added. > {code:java} > private static final String FETCHED_HMS_EVENT_BATCH = > "Fetched event batch from Metastore"; > private List<NotificationEvent> getNextMetastoreEventsIfEnabled( > EventSequence catalogTimeline, long eventId, NotificationFilter > eventsFilter) > throws MetastoreNotificationException { > if (!catalog_.isEventProcessingActive()) return Collections.emptyList(); > List<NotificationEvent> events = MetastoreEventsProcessor > .getNextMetastoreEventsInBatches(catalog_, eventId, eventsFilter); > if (catalogTimeline != null) { > catalogTimeline.markEvent(FETCHED_HMS_EVENT_BATCH); > } > return events; > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org