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
f5dcc7b7
Commit
f5dcc7b7
authored
5 years ago
by
Saqeeb Shaikh
Committed by
Sarath Subramanian
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3568: Performance improvements in writing audit logs #2
Signed-off-by:
Sarath Subramanian
<
sarath@apache.org
>
parent
fb9f1e96
master
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
EntityGraphMapper.java
...he/atlas/repository/store/graph/v2/EntityGraphMapper.java
+7
-6
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
View file @
f5dcc7b7
...
...
@@ -1755,6 +1755,11 @@ public class EntityGraphMapper {
// add the attributes for the trait instance
mapClassification
(
EntityOperation
.
CREATE
,
context
,
classification
,
entityType
,
entityVertex
,
classificationVertex
);
updateModificationMetadata
(
entityVertex
);
if
(
addedClassifications
.
get
(
classification
)
==
null
)
{
addedClassifications
.
put
(
classification
,
new
HashSet
<>());
}
//Add current Vertex to be notified
addedClassifications
.
get
(
classification
).
add
(
entityVertex
);
if
(
propagateTags
)
{
// compute propagatedEntityVertices only once
...
...
@@ -1770,11 +1775,7 @@ public class EntityGraphMapper {
List
<
AtlasVertex
>
entitiesPropagatedTo
=
deleteDelegate
.
getHandler
().
addTagPropagation
(
classificationVertex
,
entitiesToPropagateTo
);
if
(
CollectionUtils
.
isNotEmpty
(
entitiesPropagatedTo
))
{
if
(
addedClassifications
.
get
(
classification
)
==
null
)
{
addedClassifications
.
put
(
classification
,
new
HashSet
<>(
entitiesPropagatedTo
));
}
else
{
addedClassifications
.
get
(
classification
).
addAll
(
entitiesPropagatedTo
);
}
addedClassifications
.
get
(
classification
).
addAll
(
entitiesPropagatedTo
);
}
}
else
{
if
(
LOG
.
isDebugEnabled
())
{
...
...
@@ -1801,7 +1802,7 @@ public class EntityGraphMapper {
Set
<
AtlasVertex
>
vertices
=
addedClassifications
.
get
(
classification
);
List
<
AtlasEntity
>
propagatedEntities
=
updateClassificationText
(
classification
,
vertices
);
entityChangeNotifier
.
onClassificationsAddedToEntities
(
propagatedEntities
,
classifications
);
entityChangeNotifier
.
onClassificationsAddedToEntities
(
propagatedEntities
,
Collections
.
singletonList
(
classification
)
);
}
RequestContext
.
get
().
endMetricRecord
(
metric
);
...
...
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