[
https://issues.apache.org/jira/browse/HDFS-17791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18037530#comment-18037530
]
ASF GitHub Bot commented on HDFS-17791:
---------------------------------------
cvuosalo commented on PR #8077:
URL: https://github.com/apache/hadoop/pull/8077#issuecomment-3518511666
With this patch, the error message for a non-existent file is brief and
clear:
```
File we will access: /store/user/cvuosalo/testfxile3.txt
hdfsOpenFile(/store/user/cvuosalo/testfxile3.txt):
FileSystem#open((Lorg/apache/hadoop/fs/Path;I)Lorg/apache/hadoop/fs/FSDataInputStream;)
error:
RemoteException: File does not exist: /store/user/cvuosalo/testfxile3.txt
```
> libhdfs client error message for "file not found" includes lengthy, unneeded
> stack trace
> ----------------------------------------------------------------------------------------
>
> Key: HDFS-17791
> URL: https://issues.apache.org/jira/browse/HDFS-17791
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: libhdfs
> Affects Versions: 3.3.6
> Reporter: Carl Vuosalo
> Priority: Minor
> Labels: pull-request-available
>
> The {{libhdfs}} client outputs a full Java stack trace in its error message
> for a "file not found" error when trying to open a non-existent file. Our
> HDFS application processes numerous queries checking for the presence of
> files, so "file not found" errors are frequent. Each such error generates a
> very lengthy and useless Java stack trace. These traces have no diagnostic
> value, since the cause of the error is that the file doesn't exist.
> A fix for this problem is proposed by pull request
> [#7696|https://github.com/apache/hadoop/pull/7696],
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]