Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
b73e62ba
Commit
b73e62ba
authored
Jul 20, 2016
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1036 Multiple instances of AtlasPluginClassloader getting initialized (sumasai, mneethiraj)
parent
e15629c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
AtlasPluginClassLoader.java
...ache/atlas/plugin/classloader/AtlasPluginClassLoader.java
+16
-7
release-log.txt
release-log.txt
+1
-0
No files found.
plugin-classloader/src/main/java/org/apache/atlas/plugin/classloader/AtlasPluginClassLoader.java
View file @
b73e62ba
...
...
@@ -35,6 +35,8 @@ import java.util.Enumeration;
public
final
class
AtlasPluginClassLoader
extends
URLClassLoader
{
private
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
AtlasPluginClassLoader
.
class
);
private
static
volatile
AtlasPluginClassLoader
me
=
null
;
private
final
MyClassLoader
componentClassLoader
;
private
AtlasPluginClassLoader
(
String
pluginType
,
Class
<?>
pluginClass
)
throws
Exception
{
...
...
@@ -54,13 +56,20 @@ public final class AtlasPluginClassLoader extends URLClassLoader {
public
static
AtlasPluginClassLoader
getInstance
(
final
String
pluginType
,
final
Class
<?>
pluginClass
)
throws
Exception
{
AtlasPluginClassLoader
ret
=
AccessController
.
doPrivileged
(
new
PrivilegedExceptionAction
<
AtlasPluginClassLoader
>()
{
public
AtlasPluginClassLoader
run
()
throws
Exception
{
return
new
AtlasPluginClassLoader
(
pluginType
,
pluginClass
);
}
});
AtlasPluginClassLoader
ret
=
me
;
if
(
ret
==
null
)
{
synchronized
(
AtlasPluginClassLoader
.
class
)
{
ret
=
me
;
if
(
ret
==
null
)
{
me
=
AccessController
.
doPrivileged
(
new
PrivilegedExceptionAction
<
AtlasPluginClassLoader
>()
{
public
AtlasPluginClassLoader
run
()
throws
Exception
{
return
new
AtlasPluginClassLoader
(
pluginType
,
pluginClass
);
}
});
ret
=
me
;
}
}
}
return
ret
;
}
...
...
release-log.txt
View file @
b73e62ba
...
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ATLAS-1036 Multiple instances of AtlasPluginClassloader getting initialized (sumasai, mneethiraj)
ATLAS-1033 fix for issues flagged by Coverity scan (mneethiraj via sumasai)
ATLAS-1036 Compilation error on java 1.8 - GraphBackedDiscoveryService (shwethags via sumasai)
ATLAS-1034 Incorrect Falcon hook impl class name in Falcon hook shim (mneethiraj via shwethags)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment