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

Steve Loughran commented on SLIDER-85:
--------------------------------------

testing will be hard here -best tactic would be explicitly create the registry 
entry in the junit process, then start the AM and expect a failure

> Slider AM to recognise & fail when another instance of the same name is up.
> ---------------------------------------------------------------------------
>
>                 Key: SLIDER-85
>                 URL: https://issues.apache.org/jira/browse/SLIDER-85
>             Project: Slider
>          Issue Type: Improvement
>          Components: appmaster, registry
>    Affects Versions: Slider 0.30
>            Reporter: Steve Loughran
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> using the YARN app reports to enumerate instances before launching has a race 
> condition two attempts to deploy the same application instance could be made. 
> If neither operation was visible in the queue when it was polled, they'd both 
> get in
> All HBase/accumulo instances would join up to form an aggregate cluster, 
> which could be confusing, and complicate other operations like "stop".
> The registry can be used to fix this: if there is an instance already of that 
> name, the AM should fail



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to