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 08:49:22 UTC

[I] [Bug report] Glue catalog logs a misleading warning when Iceberg metadata file is missing [gravitino]

xxubai opened a new issue, #11352:
URL: https://github.com/apache/gravitino/issues/11352

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   When loading an Iceberg table from the Glue catalog, Gravitino logs a warning saying that partitioning and sort order information may be incomplete.
   
   However, the actual root cause is that the Iceberg metadata JSON file referenced by the Glue table does not exist in S3. The current warning is misleading because it makes the issue look like a partition/sort recovery problem, while the table metadata file itself is missing.
   
   ### Error message and/or stacktrace
   
   ```text
   WARN GlueCatalogOperations.loadTable - Failed to load Iceberg metadata for table <database>.<table>. Partitioning and sort order information may be incomplete.
   
   org.apache.iceberg.exceptions.NotFoundException: Location does not exist:
   s3://<bucket>/<table>/metadata/<version>.metadata.json
   
   Caused by: software.amazon.awssdk.services.s3.model.NoSuchKeyException:
   The specified key does not exist. (Service: S3, Status Code: 404)
   ```
   
   ### How to reproduce
   
   1. Configure a Gravitino Glue catalog with an Iceberg table.
   2. Make the Glue table reference an Iceberg metadata location whose S3 object no longer exists.
   3. Load the table through Gravitino, or trigger a path that calls `GlueCatalogOperations.loadTable`.
   4. Check the server log.
   
   Expected behavior: the log should clearly indicate that the Iceberg metadata file is missing or cannot be loaded.
   
   Actual behavior: the log says partitioning and sort order information may be incomplete, which hides the real cause.
   
   ### Additional context
   
   The warning is emitted from `GlueCatalogOperations.loadTable` after `GlueIcebergTableHelper.loadTable` fails. The catch block handles all exceptions with the same partition/sort warning, so missing metadata files are reported with an inaccurate message.
   


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Glue catalog logs a misleading warning when Iceberg metadata file is missing [gravitino]

Posted by "xxubai (via GitHub)" <gi...@apache.org>.
xxubai commented on issue #11352:
URL: https://github.com/apache/gravitino/issues/11352#issuecomment-4600536093

   take


-- 
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: [I] [Bug report] Glue catalog logs a misleading warning when Iceberg metadata file is missing [gravitino]

Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 closed issue #11352: [Bug report] Glue catalog logs a misleading warning when Iceberg metadata file is missing
URL: https://github.com/apache/gravitino/issues/11352


-- 
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