Steve Loughran created HADOOP-18665: ---------------------------------------
Summary: 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 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: common-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-dev-h...@hadoop.apache.org