You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2024/02/20 00:30:00 UTC

[jira] [Created] (IMPALA-12821) test_create_table_profile_events fails if event-processor is stopped

Quanlong Huang created IMPALA-12821:
---------------------------------------

             Summary: 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


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-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org