Michael Smith has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22807
Change subject: IMPALA-13631: (Addendum) Refresh table after rename ...................................................................... IMPALA-13631: (Addendum) Refresh table after rename Handles the error "Table/view rename succeeded in the Hive Metastore, but failed in Impala's Catalog Server" rather than failing the table rename. This error happens when catalog state catches up to the alter event from our alter_table RPC to HMS before we renameTable explicitly in the catalog. The catalog can update independently due to a concurrent 'invalidate metadata' call. In that case we use the oldTbl definition we already have and fetch the new table definition with invalidateTable to continue, automating most of the work that the error message suggested users do via 'invalidate metadata <tbl>'. Updated the test_concurrent_ddls test to remove handle_rename_failure and ran the tests a dozen times. Also manually tested this behavior using a debug_action after the alter_table RPC and parallel invalidate metadata. Change-Id: Ic2a276b6e5ceb35b7f3ce788cc47052387ae8980 --- M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java M tests/custom_cluster/test_concurrent_ddls.py 2 files changed, 27 insertions(+), 34 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/07/22807/1 -- To view, visit http://gerrit.cloudera.org:8080/22807 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ic2a276b6e5ceb35b7f3ce788cc47052387ae8980 Gerrit-Change-Number: 22807 Gerrit-PatchSet: 1 Gerrit-Owner: Michael Smith <michael.sm...@cloudera.com>