Retry dropping delta tables registered on AWS Glue#16092
Retry dropping delta tables registered on AWS Glue#16092ebyhr merged 3 commits intotrinodb:masterfrom
Conversation
alexjo2144
left a comment
There was a problem hiding this comment.
This is fine, but I think we could make a real code change instead of just a test change, retry drop table on Glue concurrent modification exceptions.
Usually it's not safe to retry unless you look at the changes from the other modification and reconcile them, but we're just dropping the table anyway so there shouldn't be anything to reconcile.
...no-product-tests/src/main/java/io/trino/tests/product/deltalake/util/DeltaLakeTestUtils.java
Outdated
Show resolved
Hide resolved
|
/test-with-secrets sha=cfb2e40e654abc6b033cb6e4b3cfad8015e924a2 |
...sts/src/main/java/io/trino/tests/product/deltalake/TestDeltaLakeAlterTableCompatibility.java
Outdated
Show resolved
Hide resolved
28fd876 to
5bc9a54
Compare
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/catalog/glue/TrinoGlueCatalog.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/catalog/glue/TrinoGlueCatalog.java
Outdated
Show resolved
Hide resolved
1f210b2 to
e61de80
Compare
There was a problem hiding this comment.
Usually you'd just say .handle(ConcurrentModificationException.class), unless the exception is wrapped in something else?
There was a problem hiding this comment.
it is wrapped by a TrinoException
plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/GlueHiveMetastore.java
Outdated
Show resolved
Hide resolved
plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/GlueHiveMetastore.java
Outdated
Show resolved
Hide resolved
...no-product-tests/src/main/java/io/trino/tests/product/deltalake/util/DeltaLakeTestUtils.java
Outdated
Show resolved
Hide resolved
...trino/plugin/deltalake/metastore/glue/TestDeltaLakeConcurrentModificationsGlueMetastore.java
Outdated
Show resolved
Hide resolved
...trino/plugin/deltalake/metastore/glue/TestDeltaLakeConcurrentModificationsGlueMetastore.java
Outdated
Show resolved
Hide resolved
8f34d2d to
32f2dbd
Compare
dfc7d59 to
1237526
Compare
plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/GlueHiveMetastore.java
Outdated
Show resolved
Hide resolved
.../trino/plugin/deltalake/metastore/glue/TestDeltaLakeConcurrentModificationGlueMetastore.java
Outdated
Show resolved
Hide resolved
.../trino/plugin/deltalake/metastore/glue/TestDeltaLakeConcurrentModificationGlueMetastore.java
Outdated
Show resolved
Hide resolved
plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/GlueClientUtil.java
Outdated
Show resolved
Hide resolved
...no-product-tests/src/main/java/io/trino/tests/product/deltalake/util/DeltaLakeTestUtils.java
Outdated
Show resolved
Hide resolved
.../trino/plugin/deltalake/metastore/glue/TestDeltaLakeConcurrentModificationGlueMetastore.java
Outdated
Show resolved
Hide resolved
.../trino/plugin/deltalake/metastore/glue/TestDeltaLakeConcurrentModificationGlueMetastore.java
Outdated
Show resolved
Hide resolved
1237526 to
9e2d9d3
Compare
|
Rebasing on |
9e2d9d3 to
220b529
Compare
Retry the query dropping the AWS Glue table, in the unlikely situation that another query engine may be calling asynchronously in the background an update operation on the table.
220b529 to
2cced9b
Compare
Retry the query dropping the delta table on the Databricks cluster, in the unlikely situation that the Databricks cluster may be calling asynchronously in the background an update operation on the table.
2cced9b to
58ae39e
Compare
|
@ebyhr I have addressed the comments. Could you please trigger a new round of running the build with secrets? |
|
/test-with-secrets sha=58ae39e511e35fa39dde6c78bea78b513d253f3b |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4230697367 |
Description
Retry dropping the delta table, in the unlikely situation that the Databricks cluster may be calling
asynchronously in the background
glue:UpdateTable(e.g.: update table schema) on AWS Glue.Additional context and related issues
Fixes #13199
Release notes
( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text: