atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suma Shivaprasad (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-1038) Multiple instances of AtlasPluginClassloader getting initialized
Date Wed, 20 Jul 2016 23:51:20 GMT

     [ 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)

Mime
View raw message