You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/05/21 22:12:38 UTC
[jira] [Updated] (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 ]
Ted Yu updated SLIDER-101:
--------------------------
Attachment: slider-101.txt
Patch also adds null check in AbstractInputPropertiesValidator#validateComponentProperties().
> 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
> 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)