Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18665

IOUtils.wrapWithMessage can't wrap exceptions without string constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.4
    • None
    • fs/azure, util
    • None

    Description

      When and attempt is made to wrap AbfsRestOperationException; it fails as there's no string constructor there.

      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)
      
      

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: