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 "Kihwal Lee (JIRA)" <ji...@apache.org> on 2016/10/20 13:04:58 UTC

[jira] [Commented] (HADOOP-13739) Add the ability to check - is a file opened for writing

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

Kihwal Lee commented on HADOOP-13739:
-------------------------------------

Is it going to modify (e.g. append) the existing file? Then the best way is to just go ahead and try.  If another client has a lease, it will fail.  Even if we add a call to check for open files, it will be inherently unreliable and racy for this purpose. Between the time you check and try to open, someone else can open it for write or even delete it.

> Add the ability to check - is a file opened for writing
> -------------------------------------------------------
>
>                 Key: HADOOP-13739
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13739
>             Project: Hadoop Common
>          Issue Type: New Feature
>            Reporter: VITALIY SAVCHENKO
>
> I want to merge some MapFile's to one via MapFile.Merger. But i want to be sure, what no one of file not open for wrinting now.



--
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