Skip to content

Commit

Permalink
Merge pull request #4043 from atlanhq/dg1996
Browse files Browse the repository at this point in the history
When fixing hasLineage for an asset, only edge status is being checke…
  • Loading branch information
hr2904 authored Jan 28, 2025
2 parents 51c8986 + e388c82 commit 32df511
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2705,8 +2705,15 @@ private void repairHasLineageForAsset(AtlasHasLineageRequest request) {
while (lineageEdges.hasNext()) {
AtlasEdge edge = lineageEdges.next();
if (getStatus(edge) == ACTIVE) {
foundActiveRel = true;
break;
AtlasVertex vertexB = edge.getOutVertex();
if (vertexB.equals(assetVertex)) {
vertexB = edge.getInVertex();
}

if (getStatus(vertexB) == ACTIVE) {
foundActiveRel = true;
break;
}
}
}

Expand Down

0 comments on commit 32df511

Please sign in to comment.