[email protected] has posted comments on this change. ( https://gerrit.cloudera.org/24975 )
Change subject: IMPALA-15451: Make hierarchical event executors event-driven ...................................................................... Patch Set 9: (3 comments) Reworked for comments on PS8 https://gerrit.cloudera.org/#/c/24975/8/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java File fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java: https://gerrit.cloudera.org/#/c/24975/8/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java@1429 PS8, Line 1429: clear(), since the pro > nit: maybe more clear saying "and no events will be dispatched while this l Done https://gerrit.cloudera.org/#/c/24975/8/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java@2181 PS8, Line 2181: } > Is it possible that getGreatestSyncedEventId() has reached latestEventId at Done. So instead of failing when the clear count changes, the request now falls back to waiting for the greatest synced event id to reach its latest event id. That's the same wait as in non-hierarchical mode, so both now share waitForEventSyncUpTo(). getSyncInterruptedError() is replaced by isSyncInterrupted(). The request still fails if the event processor goes to ERROR or NEEDS_INVALIDATE, or on timeout. https://gerrit.cloudera.org/#/c/24975/8/tests/custom_cluster/test_events_custom_configs.py File tests/custom_cluster/test_events_custom_configs.py: https://gerrit.cloudera.org/#/c/24975/8/tests/custom_cluster/test_events_custom_configs.py@2122 PS8, Line 2122: client = self.default_impala_client(vector.get_value('protocol')) > Shouldn't we let the query succeed since global INVALIDATE METADATA has cle Done. Agreed. The reset invalidates all tables, and start(currentEventId) advances the greatest synced event id to at least the request's latest event id, so the query can succeed with the latest metadata, same as when HEP is disabled. With the fallback in the previous comment, the request now waits for that instead of failing. Renamed the test to test_hms_event_sync_upon_catalog_reset and moved it to TestEventSyncWaiting, since it now expects success. It verifies the query gets the new row, and that catalogd logs the interruption to confirm the fallback path is taken. Also increased the event processing delay to 6s, so that the INSERT event is still pending when the reset clears the executors. -- To view, visit https://gerrit.cloudera.org/24975 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I97107e99ead7907023a936d0017f33fcdba23185 Gerrit-Change-Number: 24975 Gerrit-PatchSet: 9 Gerrit-Owner: Anonymous Coward <[email protected]> Gerrit-Reviewer: Anonymous Coward <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Comment-Date: Sun, 15 Nov 2026 02:11:21 +0000 Gerrit-HasComments: Yes
