Repository: incubator-atlas Updated Branches: refs/heads/master 2dba5feab -> 5de10081c
ATLAS-1059 Change log level to debug for search APIs(sumasai) Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/5de10081 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/5de10081 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/5de10081 Branch: refs/heads/master Commit: 5de10081cdd2092ebba54700091db2a04fbdb711 Parents: 2dba5fe Author: Suma Shivaprasad <[email protected]> Authored: Tue Jul 26 17:32:35 2016 -0700 Committer: Suma Shivaprasad <[email protected]> Committed: Tue Jul 26 17:32:35 2016 -0700 ---------------------------------------------------------------------- release-log.txt | 1 + .../atlas/discovery/graph/GraphBackedDiscoveryService.java | 4 ++-- .../src/main/scala/org/apache/atlas/query/QueryProcessor.scala | 2 +- .../titan/graphdb/query/graph/GraphCentricQueryBuilder.java | 4 +--- 4 files changed, 5 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/5de10081/release-log.txt ---------------------------------------------------------------------- diff --git a/release-log.txt b/release-log.txt index 5380a6f..3c5db92 100644 --- a/release-log.txt +++ b/release-log.txt @@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES: ALL CHANGES: +ATLAS-1059 Change log level to debug for search APIs(sumasai) ATLAS-1049 Fix validation while filtering by supertypes(mneethiraj via sumasai) ATLAS-1053 Fix issues flagged by Coverity scan - potential NPE (mneethiraj via sumasai) ATLAS-1052 Fix NPE in HiveHook due to null Session State (sumasai) http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/5de10081/repository/src/main/java/org/apache/atlas/discovery/graph/GraphBackedDiscoveryService.java ---------------------------------------------------------------------- diff --git a/repository/src/main/java/org/apache/atlas/discovery/graph/GraphBackedDiscoveryService.java b/repository/src/main/java/org/apache/atlas/discovery/graph/GraphBackedDiscoveryService.java index df18f9e..81558dd 100755 --- a/repository/src/main/java/org/apache/atlas/discovery/graph/GraphBackedDiscoveryService.java +++ b/repository/src/main/java/org/apache/atlas/discovery/graph/GraphBackedDiscoveryService.java @@ -121,7 +121,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService { } public GremlinQueryResult evaluate(String dslQuery, QueryParams queryParams) throws DiscoveryException { - LOG.info("Executing dsl query={}", dslQuery); + LOG.debug("Executing dsl query={}", dslQuery); try { Either<Parsers.NoSuccess, Expressions.Expression> either = QueryParser.apply(dslQuery, queryParams); if (either.isRight()) { @@ -164,7 +164,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService { @Override @GraphTransaction public List<Map<String, String>> searchByGremlin(String gremlinQuery) throws DiscoveryException { - LOG.info("Executing gremlin query={}", gremlinQuery); + LOG.debug("Executing gremlin query={}", gremlinQuery); ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByName("gremlin-groovy"); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/5de10081/repository/src/main/scala/org/apache/atlas/query/QueryProcessor.scala ---------------------------------------------------------------------- diff --git a/repository/src/main/scala/org/apache/atlas/query/QueryProcessor.scala b/repository/src/main/scala/org/apache/atlas/query/QueryProcessor.scala index bc9e4b4..0d2a908 100755 --- a/repository/src/main/scala/org/apache/atlas/query/QueryProcessor.scala +++ b/repository/src/main/scala/org/apache/atlas/query/QueryProcessor.scala @@ -31,7 +31,7 @@ object QueryProcessor { val q = new GremlinTranslator(e1, gP).translate() LOG.debug("Query: " + e1) LOG.debug("Expression Tree:\n" + e1.treeString) - LOG.info("Gremlin Query: " + q.queryStr) + LOG.debug("Gremlin Query: " + q.queryStr) new GremlinEvaluator(q, gP, g).evaluate() } http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/5de10081/titan/src/main/java/com/thinkaurelius/titan/graphdb/query/graph/GraphCentricQueryBuilder.java ---------------------------------------------------------------------- diff --git a/titan/src/main/java/com/thinkaurelius/titan/graphdb/query/graph/GraphCentricQueryBuilder.java b/titan/src/main/java/com/thinkaurelius/titan/graphdb/query/graph/GraphCentricQueryBuilder.java index 17453a4..c1a983b 100644 --- a/titan/src/main/java/com/thinkaurelius/titan/graphdb/query/graph/GraphCentricQueryBuilder.java +++ b/titan/src/main/java/com/thinkaurelius/titan/graphdb/query/graph/GraphCentricQueryBuilder.java @@ -321,7 +321,7 @@ public class GraphCentricQueryBuilder implements TitanGraphQuery<GraphCentricQue if (coveredClauses.isEmpty()) isSorted=candidateSupportsSort; coveredClauses.addAll(candidateSubcover); - log.info("Index chosen for query {} {} " , bestCandidate.isCompositeIndex() ? "COMPOSITE" : "MIXED", coveredClauses); + log.debug("Index chosen for query {} {} " , bestCandidate.isCompositeIndex() ? "COMPOSITE" : "MIXED", coveredClauses); if (bestCandidate.isCompositeIndex()) { jointQuery.add((CompositeIndexType)bestCandidate, serializer.getQuery((CompositeIndexType)bestCandidate,(List<Object[]>)candidateSubcondition)); @@ -454,6 +454,4 @@ public class GraphCentricQueryBuilder implements TitanGraphQuery<GraphCentricQue return true; } } - - }
