You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "xxubai (via GitHub)" <gi...@apache.org> on 2026/06/02 10:03:30 UTC
[PR] [#11352] fix(glue): improve error logging for Iceberg metadata loading [gravitino]
xxubai opened a new pull request, #11359:
URL: https://github.com/apache/gravitino/pull/11359
### What changes were proposed in this pull request?
This PR updates the Glue catalog warning when loading Iceberg metadata fails.
The warning no longer says that partitioning and sort order information may be incomplete. Instead, it reports the Iceberg metadata load failure directly and keeps the original exception in the stacktrace, so missing `metadata.json` files are easier to diagnose.
This PR also adds a regression test to ensure that a table returned after Iceberg metadata loading fails still keeps its Glue operation context.
### Why are the changes needed?
The previous warning was misleading when the real root cause was a missing Iceberg metadata file, for example an S3 `NoSuchKeyException` for `metadata/*.metadata.json`. It made the issue look like a partition or sort-order compatibility problem.
Fix: #11352
### Does this PR introduce _any_ user-facing change?
Yes. The Glue catalog warning message for Iceberg metadata loading failures is changed.
No API or configuration changes are introduced.
### How was this patch tested?
- `./gradlew :catalogs:catalog-glue:test --tests org.apache.gravitino.catalog.glue.TestGlueCatalogOperationsForIceberg -PskipITs`
- `./gradlew :catalogs:catalog-glue:test -PskipITs`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11352] fix(glue): improve error logging for Iceberg metadata loading [gravitino]
Posted by "xxubai (via GitHub)" <gi...@apache.org>.
xxubai commented on PR #11359:
URL: https://github.com/apache/gravitino/pull/11359#issuecomment-4618386782
Thanks @jerryshao @diqiu50
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11352] fix(glue): improve error logging for Iceberg metadata loading [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11359:
URL: https://github.com/apache/gravitino/pull/11359#issuecomment-4601901589
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|66.81% **`+0.03%`**|:green_circle:|
|:-|:-|:-:|
|Files changed|72.32%|:green_circle:|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|1.72%|:red_circle:|
|api|46.82%|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|aws|3.66%|:red_circle:|
|azure|2.47%|:red_circle:|
|catalog-common|10.04%|:red_circle:|
|catalog-fileset|80.33%|:green_circle:|
|catalog-glue|66.67% **`+3.09%`**|:green_circle:|
|catalog-hive|79.55%|:green_circle:|
|catalog-jdbc-clickhouse|80.02%|:green_circle:|
|catalog-jdbc-common|45.31%|:green_circle:|
|catalog-jdbc-doris|80.28%|:green_circle:|
|catalog-jdbc-hologres|54.03%|:green_circle:|
|catalog-jdbc-mysql|79.23%|:green_circle:|
|catalog-jdbc-oceanbase|78.38%|:green_circle:|
|catalog-jdbc-postgresql|82.29%|:green_circle:|
|catalog-jdbc-starrocks|78.51%|:green_circle:|
|catalog-kafka|77.01%|:green_circle:|
|catalog-lakehouse-generic|44.89%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.66%|:green_circle:|
|catalog-lakehouse-paimon|79.29%|:green_circle:|
|catalog-model|77.72%|:green_circle:|
|cli|44.51%|:green_circle:|
|client-java|77.91%|:green_circle:|
|common|49.99%|:green_circle:|
|core|82.49%|:green_circle:|
|filesystem-hadoop3|76.97%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|41.2%|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|14.12%|:red_circle:|
|hadoop-common|10.39%|:red_circle:|
|hive-metastore-common|53.26%|:green_circle:|
|iceberg-common|56.75%|:green_circle:|
|iceberg-rest-server|72.42%|:green_circle:|
|idp-basic|85.99%|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|66.17%|:green_circle:|
|lance-common|20.83%|:red_circle:|
|lance-rest-server|60.27%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|82.95%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|85.73%|:green_circle:|
|server-common|73.13%|:green_circle:|
|spark|32.79%|:red_circle:|
|spark-common|39.75%|:red_circle:|
|trino-connector|39.44%|:red_circle:|
<details>
<summary>Files</summary>
|Module|File|Coverage||
|:-|:-|:-|:-:|
|catalog-glue|[GlueCatalogOperations.java](https://github.com/xxubai/gravitino/blob/d829be2ff706beedb47bb238f04820df06e8df13/catalogs/catalog-glue/src/main/java/org/apache/gravitino/catalog/glue/GlueCatalogOperations.java)|72.32%|:green_circle:|
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11352] fix(glue): improve error logging for Iceberg metadata loading [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #11359:
URL: https://github.com/apache/gravitino/pull/11359#discussion_r3345642581
##########
catalogs/catalog-glue/src/test/java/org/apache/gravitino/catalog/glue/TestGlueCatalogOperationsForIceberg.java:
##########
@@ -203,6 +208,33 @@ void testCreateTable_icebergMissingLocationThrows() {
Indexes.EMPTY_INDEXES));
}
+ @Test
+ void testLoadTable_icebergMetadataLoadFailureKeepsGlueOpsContext() {
Review Comment:
The function name is no match the code style
##########
catalogs/catalog-glue/src/test/java/org/apache/gravitino/catalog/glue/TestGlueCatalogOperationsForIceberg.java:
##########
@@ -203,6 +208,33 @@ void testCreateTable_icebergMissingLocationThrows() {
Indexes.EMPTY_INDEXES));
}
+ @Test
+ void testLoadTable_icebergMetadataLoadFailureKeepsGlueOpsContext() {
+ software.amazon.awssdk.services.glue.model.Table rawTable =
Review Comment:
FQN problems
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11352] fix(glue): improve error logging for Iceberg metadata loading [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 merged PR #11359:
URL: https://github.com/apache/gravitino/pull/11359
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11352] fix(glue): improve error logging for Iceberg metadata loading [gravitino]
Posted by "xxubai (via GitHub)" <gi...@apache.org>.
xxubai commented on code in PR #11359:
URL: https://github.com/apache/gravitino/pull/11359#discussion_r3346266608
##########
catalogs/catalog-glue/src/test/java/org/apache/gravitino/catalog/glue/TestGlueCatalogOperationsForIceberg.java:
##########
@@ -203,6 +208,33 @@ void testCreateTable_icebergMissingLocationThrows() {
Indexes.EMPTY_INDEXES));
}
+ @Test
+ void testLoadTable_icebergMetadataLoadFailureKeepsGlueOpsContext() {
+ software.amazon.awssdk.services.glue.model.Table rawTable =
Review Comment:
Already import Iceberg table class: `import org.apache.iceberg.Table`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11352] fix(glue): improve error logging for Iceberg metadata loading [gravitino]
Posted by "xxubai (via GitHub)" <gi...@apache.org>.
xxubai commented on code in PR #11359:
URL: https://github.com/apache/gravitino/pull/11359#discussion_r3346272193
##########
catalogs/catalog-glue/src/test/java/org/apache/gravitino/catalog/glue/TestGlueCatalogOperationsForIceberg.java:
##########
@@ -203,6 +208,33 @@ void testCreateTable_icebergMissingLocationThrows() {
Indexes.EMPTY_INDEXES));
}
+ @Test
+ void testLoadTable_icebergMetadataLoadFailureKeepsGlueOpsContext() {
Review Comment:
The other test functions use the same naming convention. But I update this unit test funtion name
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org