[ 
https://issues.apache.org/jira/browse/HADOOP-16785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17008964#comment-17008964
 ] 

Steve Loughran commented on HADOOP-16785:
-----------------------------------------

and abfs:
{code}
java.lang.IllegalArgumentException: Self-suppression not permitted
at java.lang.Throwable.addSuppressed(Throwable.java:1072)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at org.apache.commons.io.IOUtils.closeQuietly(IOUtils.java:303)
at org.apache.commons.io.IOUtils.closeQuietly(IOUtils.java:274)
{code}

This is in try-with-resources
{code}
    public void close() throws IOException {
        try (OutputStream ostream = out) {
            flush();
        }
    }
{code}

hypothesis: flush() and close() are raising the same exception; the attempt to 
add the close() exception to that of flush() is rejected; 

> Improve wasb and abfs resilience on double close() calls
> --------------------------------------------------------
>
>                 Key: HADOOP-16785
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16785
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>    Affects Versions: 3.2.1
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Blocker
>
> # if you call write() after the NativeAzureFsOutputStream is closed it throws 
> an NPE ... which isn't always caught by closeQuietly code. It needs to raise 
> an IOE
> # abfs close ops can trigger failures in try-with-resources use



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to