This is an automated email from the ASF dual-hosted git repository. mchades pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push: new ca20c94b0a [MINOR] fix(gvfs): expose the nested exception for better understanding (#6398) ca20c94b0a is described below commit ca20c94b0a167581e3b5791a8146ed652a440c43 Author: Jerry Shao <jerrys...@datastrato.com> AuthorDate: Thu Feb 6 13:26:11 2025 +0800 [MINOR] fix(gvfs): expose the nested exception for better understanding (#6398) ### What changes were proposed in this pull request? Improve the gvfs to expose the nested exception for better understanding. ### Why are the changes needed? The exception message may not be enough to understand the problem why the fs initialization is failed. So we should expose the whole stack for better understanding. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. --- .../gravitino/filesystem/hadoop/GravitinoVirtualFileSystem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/GravitinoVirtualFileSystem.java b/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/GravitinoVirtualFileSystem.java index 26d248736a..67bfe961a2 100644 --- a/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/GravitinoVirtualFileSystem.java +++ b/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/GravitinoVirtualFileSystem.java @@ -322,8 +322,10 @@ public class GravitinoVirtualFileSystem extends FileSystem { return provider.getFileSystem(filePath, totalProperty); } catch (IOException ioe) { throw new GravitinoRuntimeException( + ioe, "Exception occurs when create new FileSystem for actual uri: %s, msg: %s", - uri, ioe); + uri, + ioe.getMessage()); } });