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

Sunil G commented on YARN-2268:
-------------------------------

HI [~rohithsharma]

I feel we can keep the file in statestore itself. And take file lock from 
there, then as you mentioned we may get exposed to race conditions such as RM 
is killed etc and lock file remains. Due to which *format* cannot be performed 
at all.

Could we have a *-soft* and *-hard* format options here. *-soft* can acquire 
lock file to perform option. *-hard* format can go in and format w/o caring the 
lock. Pls share your thoughts.

> Disallow formatting the RMStateStore when there is an RM running
> ----------------------------------------------------------------
>
>                 Key: YARN-2268
>                 URL: https://issues.apache.org/jira/browse/YARN-2268
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: resourcemanager
>    Affects Versions: 2.6.0
>            Reporter: Karthik Kambatla
>            Assignee: Rohith
>         Attachments: 0001-YARN-2268.patch
>
>
> YARN-2131 adds a way to format the RMStateStore. However, it can be a problem 
> if we format the store while an RM is actively using it. It would be nice to 
> fail the format if there is an RM running and using this store. 



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

Reply via email to