Xuan Gong commented on YARN-2268:

bq. If an active RM creates a "I am using the state-store" lock-file, then the 
command can bail out. Similarly, the command can create a "I am blowing up the 
state-store while you were presumably away", so that RM can crash 
deterministically when a format is in progress.

+1 for the proposal. This is probably the simplest way to fix the issue.

> 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

Reply via email to