cvuosalo opened a new pull request, #8077: URL: https://github.com/apache/hadoop/pull/8077
This PR fixes issue [HDFS-17791](https://issues.apache.org/jira/browse/HDFS-17791). The `libhdfs` client outputs a full Java stack trace in its error message for a "file not found" error. 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. See the comment below for an example of the error with stack trace. This PR eliminates the stack trace in the case of a "file not found" error. The stack trace will still be output for other kinds of errors. **How was this patch tested?** This patch was tested by loading it into our HDFS application and sending it queries for non-existent files. Concise and useful error messages resulted in the error log that no longer had the lengthy stack traces. This patch only changes the `libhdfs` C API library.There's no change to HDFS itself. The effect of the change can only be seen in an application that uses `libhdfs` to open files. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
