You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2016/09/13 20:05:20 UTC

[jira] [Commented] (HADOOP-13607) Specify and test contract for FileSystem#close.

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

Chris Nauroth commented on HADOOP-13607:
----------------------------------------

I'd also like to add tests to {{AbstractContractCreateTest}} and {{AbstractContractOpenTest}} that test idempotence of the stream {{close}} methods.

> 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