[
https://issues.apache.org/jira/browse/HADOOP-18665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700504#comment-17700504
]
Ayush Saxena commented on HADOOP-18665:
---------------------------------------
Have seen this in the past(long long ago), but it was coming from different
place and remember I fixed it then internally and an improvised flavour was
contributed as part of HADOOP-16453.
Can explore just changing to return NetUtils.wrapWithMessage(exception, msg);
in IOUtils.wrapException instead the one defined privately over there...
> IOUtils.wrapWithMessage can't wrap exceptions without string constructor
> ------------------------------------------------------------------------
>
> Key: HADOOP-18665
> URL: https://issues.apache.org/jira/browse/HADOOP-18665
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/azure, util
> Affects Versions: 3.3.4
> Reporter: Steve Loughran
> Priority: Major
>
> When and attempt is made to wrap {{AbfsRestOperationException}}; it fails as
> there's no string constructor there.
> {code}
> java.lang.NoSuchMethodException:
> org.apache.hadoop.fs.azurebfs.contracts.exceptions.AbfsRestOperationException.<init>(java.lang.String)
> at java.lang.Class.getConstructor0(Class.java:3082)
> at java.lang.Class.getConstructor(Class.java:1825)
> at org.apache.hadoop.io.IOUtils.wrapWithMessage(IOUtils.java:507)
> at org.apache.hadoop.io.IOUtils.wrapException(IOUtils.java:491)
> at
> org.apache.hadoop.fs.azurebfs.services.AbfsOutputStream.close(AbfsOutputStream.java:495)
> at
> org.apache.hadoop.fs.FSDataOutputStream$PositionCache.close(FSDataOutputStream.java:77)
> at
> org.apache.hadoop.fs.FSDataOutputStream.close(FSDataOutputStream.java:106)
> {code}
> proposed: handle NoSuchMethodException and downgrade to wrapping with a
> simple iOE. reluctant to not wrap in close() as we've had bizarre failures in
> the past there with try-with-resources failures
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]