diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4afe869921..d99b44d45e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,6 +27,7 @@ on: - development - master - lineageondemand + - hotfixindexsearch jobs: build: diff --git a/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java b/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java index 73f9140e68..e4215cba44 100755 --- a/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java +++ b/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java @@ -2065,30 +2065,6 @@ private static Set parseLabelsString(String labels) { return ret; } - - /** - * Get all the active edges - * @param vertex entity vertex - * @return Iterator of children edges - */ - public static Iterator getOnlyActiveEdges(AtlasVertex vertex, AtlasEdgeDirection direction) throws AtlasBaseException { - AtlasPerfMetrics.MetricRecorder metricRecorder = RequestContext.get().startMetricRecord("GraphHelper.getOnlyActiveEdges"); - - try { - return vertex.query() - .direction(direction) - .has(STATE_PROPERTY_KEY, ACTIVE_STATE_VALUE) - .edges() - .iterator(); - } catch (Exception e) { - LOG.error("Error while getting active edges of vertex", e); - throw new AtlasBaseException(AtlasErrorCode.INTERNAL_ERROR, e); - } - finally { - RequestContext.get().endMetricRecord(metricRecorder); - } - } - public Set> retrieveEdgeLabelsAndTypeName(AtlasVertex vertex) throws AtlasBaseException { AtlasPerfMetrics.MetricRecorder metricRecorder = RequestContext.get().startMetricRecord("GraphHelper.retrieveEdgeLabelsAndTypeName"); @@ -2109,7 +2085,7 @@ public Set> retrieveEdgeLabelsAndTypeName return new AbstractMap.SimpleEntry<>(labelStr, typeNameStr); }) - .filter(entry -> !entry.getKey().isEmpty() && !entry.getValue().isEmpty()) + .filter(entry -> !entry.getKey().isEmpty()) .distinct() .collect(Collectors.toSet());