Quanlong Huang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19786
Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db ...................................................................... IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db INVALIDATE METADATA can be executed on tables under unloaded db. It will bring up the metadata of the db by the way. However, this feature is broken after IMPALA-11808 in which we try to get the table from catalog cache assuming it's loaded. This causes the above use case failed by DatabaseNotFoundException. This patch fixes the regression by not getting the table from catalog cache for INVALIDATE METADATA commands. We only do so for REFRESH commands. After the INVALIDATE METADATA command succeeds, if we need to fire reload events, we get the table from catalog cache. Tests: - Add e2e tests for event-processor is disabled and enabled. Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4 --- M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java M tests/custom_cluster/test_metadata_no_events_processing.py M tests/metadata/test_hms_integration.py 3 files changed, 35 insertions(+), 5 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/86/19786/1 -- To view, visit http://gerrit.cloudera.org:8080/19786 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4 Gerrit-Change-Number: 19786 Gerrit-PatchSet: 1 Gerrit-Owner: Quanlong Huang <[email protected]>
