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
debbc0ae
Commit
debbc0ae
authored
Mar 13, 2019
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3067: fix for IT failures caused by changes in hive-preprocessor
parent
9e2d3266
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
HivePreprocessor.java
...che/atlas/notification/preprocessor/HivePreprocessor.java
+5
-1
No files found.
webapp/src/main/java/org/apache/atlas/notification/preprocessor/HivePreprocessor.java
View file @
debbc0ae
...
@@ -205,13 +205,17 @@ public class HivePreprocessor {
...
@@ -205,13 +205,17 @@ public class HivePreprocessor {
Object
inputs
=
entity
.
getAttribute
(
ATTRIBUTE_INPUTS
);
Object
inputs
=
entity
.
getAttribute
(
ATTRIBUTE_INPUTS
);
Object
outputs
=
entity
.
getAttribute
(
ATTRIBUTE_OUTPUTS
);
Object
outputs
=
entity
.
getAttribute
(
ATTRIBUTE_OUTPUTS
);
int
inputsCount
=
(
inputs
instanceof
Collection
)
?
((
Collection
)
inputs
).
size
()
:
0
;
int
outputsCount
=
(
outputs
instanceof
Collection
)
?
((
Collection
)
outputs
).
size
()
:
0
;
removeIgnoredObjectIds
(
inputs
,
context
);
removeIgnoredObjectIds
(
inputs
,
context
);
removeIgnoredObjectIds
(
outputs
,
context
);
removeIgnoredObjectIds
(
outputs
,
context
);
boolean
isInputsEmpty
=
isEmpty
(
inputs
);
boolean
isInputsEmpty
=
isEmpty
(
inputs
);
boolean
isOutputsEmpty
=
isEmpty
(
outputs
);
boolean
isOutputsEmpty
=
isEmpty
(
outputs
);
if
(
isInputsEmpty
||
isOutputsEmpty
)
{
// if inputs/outputs became empty due to removal of ignored entities, ignore the process entity as well
if
((
inputsCount
>
0
&&
isInputsEmpty
)
||
(
outputsCount
>
0
&&
isOutputsEmpty
))
{
context
.
addToIgnoredEntities
(
entity
);
context
.
addToIgnoredEntities
(
entity
);
// since the process entity is ignored, entities referenced by inputs/outputs of this process entity
// since the process entity is ignored, entities referenced by inputs/outputs of this process entity
...
...
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