You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Suma Shivaprasad (JIRA)" <ji...@apache.org> on 2016/07/20 23:51:20 UTC

[jira] [Updated] (ATLAS-1038) Multiple instances of AtlasPluginClassloader getting initialized

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

Suma Shivaprasad updated ATLAS-1038:
------------------------------------
    Attachment: ATLAS-1038.patch

Fixed with double locked check

> Multiple instances of AtlasPluginClassloader getting initialized
> ----------------------------------------------------------------
>
>                 Key: ATLAS-1038
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1038
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.8-incubating
>            Reporter: Suma Shivaprasad
>            Assignee: Suma Shivaprasad
>             Fix For: 0.8-incubating
>
>         Attachments: ATLAS-1038.patch
>
>
> Current code doesnt not synchronize the instance creation and hence results in multiple instances getting created
> AtlasPluginClassLoader ret =
>                 AccessController.doPrivileged(new PrivilegedExceptionAction<AtlasPluginClassLoader>() {
>                     public AtlasPluginClassLoader run() throws Exception {
>                         return new AtlasPluginClassLoader(pluginType, pluginClass);
>                     }
>                 });
>         return ret;



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