hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13607) Specify and test contract for FileSystem#close.
Date Tue, 20 Sep 2016 15:07:20 GMT

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

Steve Loughran commented on HADOOP-13607:
-----------------------------------------

There's a couple of tests in {{FileSystemContractBaseTest}} contract tests which do this,
{{testInputStreamClosedTwice}} and {{testOutputStreamClosedTwice}}

> Specify and test contract for FileSystem#close.
> -----------------------------------------------
>
>                 Key: HADOOP-13607
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13607
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>            Reporter: Chris Nauroth
>
> This issue proposes to enhance the {{FileSystem}} specification by describing the expected
semantics of {{FileSystem#close}} and adding corresponding contract tests.  Notable aspects
are that the method must be idempotent as dictated by {{java.io.Closeable}} and closing also
interacts with the delete-on-exit feature.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message