Impala Public Jenkins has submitted this change and it was merged. ( 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 Reviewed-on: http://gerrit.cloudera.org:8080/19786 Reviewed-by: Michael Smith <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- 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, 37 insertions(+), 5 deletions(-) Approvals: Michael Smith: Looks good to me, approved Impala Public Jenkins: Verified -- 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: merged Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4 Gerrit-Change-Number: 19786 Gerrit-PatchSet: 6 Gerrit-Owner: Quanlong Huang <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Reviewer: Sai Hemanth Gantasala <[email protected]>
