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

   ### What changes were proposed in this pull request?
   
   Classify I/O errors from `exists()` and `getFileStatus()` on named Fileset 
locations as `ConnectionFailedException`. Return the location name and failure 
category, and log the backend exception on the server.
   
   ### Why are the changes needed?
   
   An S3 access denial during initialization currently returns HTTP 500 with 
code 1002 before the connection probe runs.
   
   Fixes #14844. See also #14867.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. For a denied S3 location, `testConnection` returns HTTP 200 with code 
1007 and identifies the failure as `location-s3 (access denied)`.
   
   ### How was this patch tested?
   
   - Added regression cases for access denied in both filesystem calls.
   - Verified the REST handlers for proposed and existing catalogs against a 
local S3 endpoint returning 403.
   - Ran the full Gradle unit suite (`test -PskipITs`) with a temporary hosts 
file for the Java client test JVM.
   


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