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
e7eaa996
Commit
e7eaa996
authored
Feb 21, 2017
by
ashutoshm
Committed by
Madhan Neethiraj
Feb 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1583: fix incorrect metrics by import API
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
2904f4c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
AtlasEntityStoreV1.java
...e/atlas/repository/store/graph/v1/AtlasEntityStoreV1.java
+4
-0
ImportService.java
...in/java/org/apache/atlas/web/resources/ImportService.java
+1
-1
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityStoreV1.java
View file @
e7eaa996
...
...
@@ -186,6 +186,10 @@ public class AtlasEntityStoreV1 implements AtlasEntityStore {
}
for
(
AtlasEntityHeader
h
:
list
)
{
if
(
processedGuids
.
contains
(
h
.
getGuid
()))
{
continue
;
}
processedGuids
.
add
(
h
.
getGuid
());
importResult
.
incrementMeticsCounter
(
String
.
format
(
prefix
,
h
.
getTypeName
()));
}
...
...
webapp/src/main/java/org/apache/atlas/web/resources/ImportService.java
View file @
e7eaa996
...
...
@@ -139,6 +139,6 @@ public class ImportService {
this
.
entityStore
.
bulkImport
(
importSource
,
result
);
endTimestamp
=
System
.
currentTimeMillis
();
result
.
incrementMeticsCounter
(
"
D
uration"
,
(
int
)
(
this
.
endTimestamp
-
this
.
startTimestamp
));
result
.
incrementMeticsCounter
(
"
d
uration"
,
(
int
)
(
this
.
endTimestamp
-
this
.
startTimestamp
));
}
}
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