lasdf1234 opened a new pull request, #13034:
URL: https://github.com/apache/gravitino/pull/13034

   ### What changes were proposed in this pull request?
   
   Classify Iceberg JDBC catalog authorization failures via SQLState class `28` 
(plus MySQL/PostgreSQL message fallbacks), so PostgreSQL bad-credential errors 
become `ConnectionFailedException` like MySQL `Access denied`.
   
   ### Why are the changes needed?
   
   Previously only the literal `Access denied` was matched. PostgreSQL reports 
`password authentication failed` / `role ... does not exist` (`28P01` / 
`28000`), so failures escaped as raw `UncheckedSQLException`.
   
   Fix: #13033
   
   ### Does this PR introduce _any_ user-facing change?
   
   - PostgreSQL Iceberg JDBC catalogs with bad credentials now surface 
`ConnectionFailedException` instead of a generic internal error.
   - No new APIs or property keys.
   
   ### How was this patch tested?
   
   ```
   ./gradlew :iceberg:iceberg-common:test --tests 
org.apache.gravitino.iceberg.common.utils.TestIcebergCatalogUtil -PskipITs
   ```
   
   Made with [Cursor](https://cursor.com)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to