Copilot commented on code in PR #14885:
URL: https://github.com/apache/gravitino/pull/14885#discussion_r4535399419


##########
catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java:
##########
@@ -1202,8 +1202,15 @@ private Map<String, Path> 
getAndCheckCatalogStorageLocations(Map<String, String>
                           + locationName);
                 }
               } catch (IOException e) {
-                throw ExceptionMessages.wrap(
-                    "Failed to check if fileset catalog location exists: " + 
v, e);
+                // REST responses can include the cause chain. Keep backend 
diagnostics in the log.
+                LOG.warn(
+                    "Failed to check {} for Fileset catalog {}.{}",
+                    k,
+                    catalogInfo.namespace(),
+                    catalogInfo.name(),
+                    e);
+                throw new ConnectionFailedException(
+                    "Failed to check Fileset catalog storage at %s (%s)", k, 
failureCategory(e));

Review Comment:
   The warn log currently records only the location key `k` (e.g., 
`location-s3`) but not the actual storage URI/value (`v`). Since the REST 
response now intentionally hides backend details, the server log becomes the 
primary diagnostic source—omitting the URI makes incidents harder to debug 
(especially if multiple locations exist). Consider including both the location 
name and the resolved path/URI in the log message (while keeping the thrown 
exception message user-safe as it is).



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