You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2014/05/22 12:15:01 UTC

[jira] [Resolved] (SLIDER-101) AgentProviderService#metainfo should be declared volatile

     [ https://issues.apache.org/jira/browse/SLIDER-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Loughran resolved SLIDER-101.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: Slider 0.30

patch applied, thanks

> AgentProviderService#metainfo should be declared volatile
> ---------------------------------------------------------
>
>                 Key: SLIDER-101
>                 URL: https://issues.apache.org/jira/browse/SLIDER-101
>             Project: Slider
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: Slider 0.30
>
>         Attachments: slider-101.txt
>
>
> In AgentProviderService#buildContainerLaunchContext():
> {code}
>     if (metainfo == null) {
>       synchronized (syncLock) {
>         if (metainfo == null) {
>           metainfo = getApplicationMetainfo(fileSystem, appDef);
> {code}
> For double checked locking to work, metainfo should be declared volatile.



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