Andrew Sherman has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19509


Change subject: IMPALA-11509: Prevent query hanging when Iceberg metadata is 
missing.
......................................................................

IMPALA-11509: Prevent query hanging when Iceberg metadata is missing.

Traditionally table metadata is loaded by the catalog and sent as thrift
to the Impala daemons. With Iceberg tables, some metadata, for example
the org.apache.iceberg.Table, is loaded in the Coordinator at the same
time as the thrift description is being deserialized. If the loading of
the org.apache.iceberg.Table fails, perhaps because of missing Iceberg
metadata, then the loading of the table fails. This can cause an
infinite loop as StmtMetadataLoader.loadTables() waits hopefully for
the catalog to send a new version of the table.

Prevent this situation by substituting a IncompleteTable if a
TableLoadingException occurs.

TESTING

Add a new test originally developed for IMPALA-11330 which tests
failures after deleting Iceberg metadata.

Change-Id: I695559e21c510615918a51a4b5057bc616ee5421
---
M fe/src/main/java/org/apache/impala/catalog/Table.java
M tests/query_test/test_iceberg.py
2 files changed, 48 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/09/19509/1
--
To view, visit http://gerrit.cloudera.org:8080/19509
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I695559e21c510615918a51a4b5057bc616ee5421
Gerrit-Change-Number: 19509
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Sherman <asher...@cloudera.com>

Reply via email to