Mihaly Szjatinya has uploaded a new patch set (#3). (
https://gerrit.cloudera.org/25258 )
Change subject: IMPALA-15502: Test DROP TABLE on Iceberg REST catalogs
......................................................................
IMPALA-15502: Test DROP TABLE on Iceberg REST catalogs
IMPALA-15493 executes DROP TABLE on Iceberg REST catalog tables in the
coordinator. This adds end-to-end coverage for the cases its tests left
open:
- PURGE: the test REST server, backed by HadoopCatalog, deletes the
table directory with or without PURGE, so the files can't show
whether PURGE reached it. The server now logs every request it
handles, and the tests check that DROP TABLE sends
purgeRequested=true exactly when PURGE is given.
- A REST catalog without a unique name: DROP TABLE is rejected for a
loaded table and for one that fails to load, instead of being sent
to catalogd, and IF EXISTS on a missing table is a no-op.
- Several coordinators: a table dropped through one coordinator, with
SYNC_DDL, can't be resolved on another one right after.
- An unreachable REST server: in a database that catalogd and the REST
catalog both have, DROP TABLE of a catalogd table fails while the
server is down and works again once it is back.
- A table that two REST catalogs list: DROP TABLE is rejected as
ambiguous, also with IF EXISTS, and neither catalog drops it.
Testing:
- test_iceberg_rest_catalog.py (_run_rest_drop_table_test): checks the
DELETE request of DROP TABLE with and without PURGE
- TestIcebergRestCatalogWithHms#test_rest_catalog_drop_table: drop on
one coordinator with SYNC_DDL, then resolve on another
- TestIcebergRestCatalogWithHms#
test_rest_catalog_drop_while_unreachable: new
- TestIcebergRestCatalog{WithHms,Standalone}#
test_rest_catalog_drop_without_unique_name: new, with the new
duplicate_name_rest_config catalog configs
- TestIcebergRestCatalogStandalone#
test_multiple_rest_catalogs_drop_ambiguous_table: new
- IcebergRestCatalogTest (test REST server): logs each request
- iceberg_rest_server.py: exposes the server's log path
Regression:
- tests/unittests/test_iceberg_rest_catalog.py
- IcebergDdlExecutorTest, MultiMetaProviderTest
Change-Id: I78e5b094b92ef6e44ff83c26dd96bf145670f679
Assisted-by: Claude Opus 5.5 (GitHub Copilot)
---
M
java/iceberg-rest-catalog-test/src/main/java/org/apache/iceberg/rest/IcebergRestCatalogTest.java
A testdata/configs/catalog_configs/duplicate_name_rest_config/rest-1.properties
A testdata/configs/catalog_configs/duplicate_name_rest_config/rest-2.properties
M tests/common/iceberg_rest_server.py
M tests/custom_cluster/test_iceberg_rest_catalog.py
5 files changed, 204 insertions(+), 9 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/58/25258/3
--
To view, visit https://gerrit.cloudera.org/25258
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I78e5b094b92ef6e44ff83c26dd96bf145670f679
Gerrit-Change-Number: 25258
Gerrit-PatchSet: 3
Gerrit-Owner: Mihaly Szjatinya <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Mihaly Szjatinya <[email protected]>
Gerrit-Reviewer: Peter Rozsa <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>