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
9a555373
Commit
9a555373
authored
6 years ago
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2982: import fails to create classification-def - #2
parent
18a4984a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ImportService.java
...ava/org/apache/atlas/repository/impexp/ImportService.java
+4
-2
No files found.
repository/src/main/java/org/apache/atlas/repository/impexp/ImportService.java
View file @
9a555373
...
@@ -80,8 +80,6 @@ public class ImportService {
...
@@ -80,8 +80,6 @@ public class ImportService {
public
AtlasImportResult
run
(
ZipSource
source
,
AtlasImportRequest
request
,
String
userName
,
public
AtlasImportResult
run
(
ZipSource
source
,
AtlasImportRequest
request
,
String
userName
,
String
hostName
,
String
requestingIP
)
throws
AtlasBaseException
{
String
hostName
,
String
requestingIP
)
throws
AtlasBaseException
{
RequestContext
.
get
().
setImportInProgress
(
true
);
if
(
request
==
null
)
{
if
(
request
==
null
)
{
request
=
new
AtlasImportRequest
();
request
=
new
AtlasImportRequest
();
}
}
...
@@ -91,6 +89,8 @@ public class ImportService {
...
@@ -91,6 +89,8 @@ public class ImportService {
try
{
try
{
LOG
.
info
(
"==> import(user={}, from={}, request={})"
,
userName
,
requestingIP
,
request
);
LOG
.
info
(
"==> import(user={}, from={}, request={})"
,
userName
,
requestingIP
,
request
);
RequestContext
.
get
().
setImportInProgress
(
true
);
String
transforms
=
MapUtils
.
isNotEmpty
(
request
.
getOptions
())
?
request
.
getOptions
().
get
(
TRANSFORMS_KEY
)
:
null
;
String
transforms
=
MapUtils
.
isNotEmpty
(
request
.
getOptions
())
?
request
.
getOptions
().
get
(
TRANSFORMS_KEY
)
:
null
;
setImportTransform
(
source
,
transforms
);
setImportTransform
(
source
,
transforms
);
...
@@ -110,6 +110,8 @@ public class ImportService {
...
@@ -110,6 +110,8 @@ public class ImportService {
throw
new
AtlasBaseException
(
excp
);
throw
new
AtlasBaseException
(
excp
);
}
finally
{
}
finally
{
RequestContext
.
get
().
setImportInProgress
(
false
);
source
.
close
();
source
.
close
();
LOG
.
info
(
"<== import(user={}, from={}): status={}"
,
userName
,
requestingIP
,
result
.
getOperationStatus
());
LOG
.
info
(
"<== import(user={}, from={}): status={}"
,
userName
,
requestingIP
,
result
.
getOperationStatus
());
}
}
...
...
This diff is collapsed.
Click to expand it.
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