[
https://issues.apache.org/jira/browse/HADOOP-19259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922373#comment-17922373
]
ASF GitHub Bot commented on HADOOP-19259:
-----------------------------------------
pjfanning commented on code in PR #7022:
URL: https://github.com/apache/hadoop/pull/7022#discussion_r1935597266
##########
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java:
##########
@@ -846,9 +846,27 @@ private T runWithRetry() throws IOException {
node = url.getAuthority();
}
try {
- IOException newIoe = ioe.getClass().getConstructor(String.class)
- .newInstance(node + ": " + ioe.getMessage());
- newIoe.initCause(ioe.getCause());
+ final Throwable cause = ioe.getCause();
+ IOException newIoe = null;
+ if (cause != null) {
+ try {
+ ioe.getClass().getConstructor(String.class, Throwable.class)
Review Comment:
I'll have a look. I have noticed that Hadoop has a very large amount of
Reflection still in use. That is, the Dyn* classes are only used in a small
number of places while there are dozens or even hundreds of uses of raw
Reflection.
> upgrade to jackson 2.18.2
> -------------------------
>
> Key: HADOOP-19259
> URL: https://issues.apache.org/jira/browse/HADOOP-19259
> Project: Hadoop Common
> Issue Type: Task
> Components: common
> Reporter: PJ Fanning
> Priority: Major
> Labels: pull-request-available
>
> see HADOOP-19230 and HADOOP-18332
> Jackson 2.18 has https://github.com/FasterXML/jackson-jaxrs-providers/pull/192
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]