Commit 5de10081 by Suma Shivaprasad

ATLAS-1059 Change log level to debug for search APIs(sumasai)

parent 2dba5fea
...@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES: ...@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL 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-1049 Fix validation while filtering by supertypes(mneethiraj via sumasai)
ATLAS-1053 Fix issues flagged by Coverity scan - potential NPE (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) ATLAS-1052 Fix NPE in HiveHook due to null Session State (sumasai)
......
...@@ -121,7 +121,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService { ...@@ -121,7 +121,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService {
} }
public GremlinQueryResult evaluate(String dslQuery, QueryParams queryParams) throws DiscoveryException { public GremlinQueryResult evaluate(String dslQuery, QueryParams queryParams) throws DiscoveryException {
LOG.info("Executing dsl query={}", dslQuery); LOG.debug("Executing dsl query={}", dslQuery);
try { try {
Either<Parsers.NoSuccess, Expressions.Expression> either = QueryParser.apply(dslQuery, queryParams); Either<Parsers.NoSuccess, Expressions.Expression> either = QueryParser.apply(dslQuery, queryParams);
if (either.isRight()) { if (either.isRight()) {
...@@ -164,7 +164,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService { ...@@ -164,7 +164,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService {
@Override @Override
@GraphTransaction @GraphTransaction
public List<Map<String, String>> searchByGremlin(String gremlinQuery) throws DiscoveryException { 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(); ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("gremlin-groovy"); ScriptEngine engine = manager.getEngineByName("gremlin-groovy");
......
...@@ -31,7 +31,7 @@ object QueryProcessor { ...@@ -31,7 +31,7 @@ object QueryProcessor {
val q = new GremlinTranslator(e1, gP).translate() val q = new GremlinTranslator(e1, gP).translate()
LOG.debug("Query: " + e1) LOG.debug("Query: " + e1)
LOG.debug("Expression Tree:\n" + e1.treeString) 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() new GremlinEvaluator(q, gP, g).evaluate()
} }
......
...@@ -321,7 +321,7 @@ public class GraphCentricQueryBuilder implements TitanGraphQuery<GraphCentricQue ...@@ -321,7 +321,7 @@ public class GraphCentricQueryBuilder implements TitanGraphQuery<GraphCentricQue
if (coveredClauses.isEmpty()) isSorted=candidateSupportsSort; if (coveredClauses.isEmpty()) isSorted=candidateSupportsSort;
coveredClauses.addAll(candidateSubcover); 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()) { if (bestCandidate.isCompositeIndex()) {
jointQuery.add((CompositeIndexType)bestCandidate, jointQuery.add((CompositeIndexType)bestCandidate,
serializer.getQuery((CompositeIndexType)bestCandidate,(List<Object[]>)candidateSubcondition)); serializer.getQuery((CompositeIndexType)bestCandidate,(List<Object[]>)candidateSubcondition));
...@@ -454,6 +454,4 @@ public class GraphCentricQueryBuilder implements TitanGraphQuery<GraphCentricQue ...@@ -454,6 +454,4 @@ public class GraphCentricQueryBuilder implements TitanGraphQuery<GraphCentricQue
return true; return true;
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment